Struct libsignal_protocol::PreKeyBundleContent
source · pub struct PreKeyBundleContent {
pub registration_id: Option<u32>,
pub device_id: Option<DeviceId>,
pub pre_key_id: Option<PreKeyId>,
pub pre_key_public: Option<PublicKey>,
pub ec_pre_key_id: Option<SignedPreKeyId>,
pub ec_pre_key_public: Option<PublicKey>,
pub ec_pre_key_signature: Option<Vec<u8>>,
pub identity_key: Option<IdentityKey>,
pub kyber_pre_key_id: Option<KyberPreKeyId>,
pub kyber_pre_key_public: Option<PublicKey>,
pub kyber_pre_key_signature: Option<Vec<u8>>,
}
Fields§
§registration_id: Option<u32>
§device_id: Option<DeviceId>
§pre_key_id: Option<PreKeyId>
§pre_key_public: Option<PublicKey>
§ec_pre_key_id: Option<SignedPreKeyId>
§ec_pre_key_public: Option<PublicKey>
§ec_pre_key_signature: Option<Vec<u8>>
§identity_key: Option<IdentityKey>
§kyber_pre_key_id: Option<KyberPreKeyId>
§kyber_pre_key_public: Option<PublicKey>
§kyber_pre_key_signature: Option<Vec<u8>>
Trait Implementations§
source§impl From<PreKeyBundle> for PreKeyBundleContent
impl From<PreKeyBundle> for PreKeyBundleContent
source§fn from(bundle: PreKeyBundle) -> Self
fn from(bundle: PreKeyBundle) -> Self
Converts to this type from the input type.
source§impl TryFrom<PreKeyBundleContent> for PreKeyBundle
impl TryFrom<PreKeyBundleContent> for PreKeyBundle
§type Error = SignalProtocolError
type Error = SignalProtocolError
The type returned in the event of a conversion error.
source§fn try_from(content: PreKeyBundleContent) -> Result<Self>
fn try_from(content: PreKeyBundleContent) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PreKeyBundleContent
impl RefUnwindSafe for PreKeyBundleContent
impl Send for PreKeyBundleContent
impl Sync for PreKeyBundleContent
impl Unpin for PreKeyBundleContent
impl UnwindSafe for PreKeyBundleContent
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more