pub struct Encrypted {
pub header: Header,
pub payload: Option<Payload>,
}
Expand description
An OMEMO element, which can be either a MessageElement (with payload), or a KeyTransportElement (without payload).
Fields§
§header: Header
The header contains encrypted keys for a message
payload: Option<Payload>
Payload for MessageElement
Trait Implementations§
Source§impl AsXml for Encrypted
impl AsXml for Encrypted
Source§impl FromXml for Encrypted
impl FromXml for Encrypted
Source§type Builder = EncryptedFromXmlBuilder
type Builder = EncryptedFromXmlBuilder
A builder type used to construct the element. Read more
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 Encrypted
impl TryFrom<Element> for Encrypted
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl MessagePayload for Encrypted
impl StructuralPartialEq for Encrypted
Auto Trait Implementations§
impl Freeze for Encrypted
impl RefUnwindSafe for Encrypted
impl Send for Encrypted
impl Sync for Encrypted
impl Unpin for Encrypted
impl UnwindSafe for Encrypted
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