pub struct Delay {
pub from: Option<Jid>,
pub stamp: DateTime,
pub data: Option<String>,
}
Expand description
Notes when and by whom a message got stored for later delivery.
Fields§
§from: Option<Jid>
The entity which delayed this message.
stamp: DateTime
The time at which this message got stored.
data: Option<String>
The optional reason this message got delayed.
Trait Implementations§
Source§impl AsXml for Delay
impl AsXml for Delay
Source§impl FromXml for Delay
impl FromXml for Delay
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 Delay
impl TryFrom<Element> for Delay
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl MessagePayload for Delay
impl PresencePayload for Delay
impl StructuralPartialEq for Delay
Auto Trait Implementations§
impl Freeze for Delay
impl RefUnwindSafe for Delay
impl Send for Delay
impl Sync for Delay
impl Unpin for Delay
impl UnwindSafe for Delay
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