pub struct Bundle {
pub signed_pre_key_public: Option<SignedPreKeyPublic>,
pub signed_pre_key_signature: Option<SignedPreKeySignature>,
pub identity_key: Option<IdentityKey>,
pub prekeys: Option<Prekeys>,
}
Expand description
A collection of publicly accessible data that can be used to build a session with a device, namely its public IdentityKey, a signed PreKey with corresponding signature, and a list of (single use) PreKeys.
Fields§
§signed_pre_key_public: Option<SignedPreKeyPublic>
SignedPreKey public key
signed_pre_key_signature: Option<SignedPreKeySignature>
SignedPreKey signature
identity_key: Option<IdentityKey>
IdentityKey public key
prekeys: Option<Prekeys>
List of (single use) PreKeys
Trait Implementations§
Source§impl AsXml for Bundle
impl AsXml for Bundle
Source§impl FromXml for Bundle
impl FromXml for Bundle
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 Bundle
impl TryFrom<Element> for Bundle
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl PubSubPayload for Bundle
impl StructuralPartialEq for Bundle
Auto Trait Implementations§
impl Freeze for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnwindSafe for Bundle
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