pub struct StanzaId {
pub id: String,
pub by: Jid,
}
Expand description
Gives the identifier a service has stamped on this stanza, often in order to identify it inside of an archive.
Fields§
§id: String
The id associated to this stanza by another entity.
by: Jid
The entity who stamped this stanza-id.
Trait Implementations§
Source§impl AsXml for StanzaId
impl AsXml for StanzaId
Source§impl FromXml for StanzaId
impl FromXml for StanzaId
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 StanzaId
impl TryFrom<Element> for StanzaId
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl MessagePayload for StanzaId
impl StructuralPartialEq for StanzaId
Auto Trait Implementations§
impl Freeze for StanzaId
impl RefUnwindSafe for StanzaId
impl Send for StanzaId
impl Sync for StanzaId
impl Unpin for StanzaId
impl UnwindSafe for StanzaId
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