pub struct PreKeyPublic {
    pub pre_key_id: u32,
    pub data: Vec<u8>,
}Expand description
PreKey public key Part of a device’s bundle
Fields§
§pre_key_id: u32PreKey id
data: Vec<u8>Serialized PublicKey
Trait Implementations§
Source§impl AsXml for PreKeyPublic
 
impl AsXml for PreKeyPublic
Source§impl Clone for PreKeyPublic
 
impl Clone for PreKeyPublic
Source§fn clone(&self) -> PreKeyPublic
 
fn clone(&self) -> PreKeyPublic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for PreKeyPublic
 
impl Debug for PreKeyPublic
Source§impl From<&PreKeyPublic> for Element
 
impl From<&PreKeyPublic> for Element
Source§fn from(other: &PreKeyPublic) -> Self
 
fn from(other: &PreKeyPublic) -> Self
Converts to this type from the input type.
Source§impl From<PreKeyPublic> for Element
 
impl From<PreKeyPublic> for Element
Source§fn from(other: PreKeyPublic) -> Self
 
fn from(other: PreKeyPublic) -> Self
Converts to this type from the input type.
Source§impl FromXml for PreKeyPublic
 
impl FromXml for PreKeyPublic
Source§type Builder = PreKeyPublicFromXmlBuilder
 
type Builder = PreKeyPublicFromXmlBuilder
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 PartialEq for PreKeyPublic
 
impl PartialEq for PreKeyPublic
Source§impl TryFrom<Element> for PreKeyPublic
 
impl TryFrom<Element> for PreKeyPublic
Source§type Error = FromElementError
 
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for PreKeyPublic
Auto Trait Implementations§
impl Freeze for PreKeyPublic
impl RefUnwindSafe for PreKeyPublic
impl Send for PreKeyPublic
impl Sync for PreKeyPublic
impl Unpin for PreKeyPublic
impl UnwindSafe for PreKeyPublic
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