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 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,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)