pub struct Prefs {
pub default_: DefaultPrefs,
pub always: Vec<Jid>,
pub never: Vec<Jid>,
}
Expand description
Controls the archiving preferences of the user.
Fields§
§default_: DefaultPrefs
§always: Vec<Jid>
The set of JIDs for which to always store messages in the archive.
never: Vec<Jid>
The set of JIDs for which to never store messages in the archive.
Trait Implementations§
Source§impl AsXml for Prefs
impl AsXml for Prefs
Source§impl FromXml for Prefs
impl FromXml for Prefs
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self
may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for Prefs
impl TryFrom<Element> for Prefs
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqGetPayload for Prefs
impl IqResultPayload for Prefs
impl IqSetPayload for Prefs
impl StructuralPartialEq for Prefs
Auto Trait Implementations§
impl Freeze for Prefs
impl RefUnwindSafe for Prefs
impl Send for Prefs
impl Sync for Prefs
impl Unpin for Prefs
impl UnwindSafe for Prefs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more