Struct libsignal_service::proto::ProvisionMessage
source · pub struct ProvisionMessage {Show 13 fields
pub aci_identity_key_public: Option<Vec<u8>>,
pub aci_identity_key_private: Option<Vec<u8>>,
pub pni_identity_key_public: Option<Vec<u8>>,
pub pni_identity_key_private: Option<Vec<u8>>,
pub aci: Option<String>,
pub pni: Option<String>,
pub number: Option<String>,
pub provisioning_code: Option<String>,
pub user_agent: Option<String>,
pub profile_key: Option<Vec<u8>>,
pub read_receipts: Option<bool>,
pub provisioning_version: Option<u32>,
pub master_key: Option<Vec<u8>>,
}
Fields§
§aci_identity_key_public: Option<Vec<u8>>
§aci_identity_key_private: Option<Vec<u8>>
§pni_identity_key_public: Option<Vec<u8>>
§pni_identity_key_private: Option<Vec<u8>>
§aci: Option<String>
§pni: Option<String>
§number: Option<String>
§provisioning_code: Option<String>
§user_agent: Option<String>
§profile_key: Option<Vec<u8>>
§read_receipts: Option<bool>
§provisioning_version: Option<u32>
§master_key: Option<Vec<u8>>
NEXT ID: 14
Implementations§
source§impl ProvisionMessage
impl ProvisionMessage
sourcepub fn aci_identity_key_public(&self) -> &[u8] ⓘ
pub fn aci_identity_key_public(&self) -> &[u8] ⓘ
Returns the value of aci_identity_key_public
, or the default value if aci_identity_key_public
is unset.
sourcepub fn aci_identity_key_private(&self) -> &[u8] ⓘ
pub fn aci_identity_key_private(&self) -> &[u8] ⓘ
Returns the value of aci_identity_key_private
, or the default value if aci_identity_key_private
is unset.
sourcepub fn number(&self) -> &str
pub fn number(&self) -> &str
Returns the value of number
, or the default value if number
is unset.
sourcepub fn provisioning_code(&self) -> &str
pub fn provisioning_code(&self) -> &str
Returns the value of provisioning_code
, or the default value if provisioning_code
is unset.
sourcepub fn user_agent(&self) -> &str
pub fn user_agent(&self) -> &str
Returns the value of user_agent
, or the default value if user_agent
is unset.
sourcepub fn profile_key(&self) -> &[u8] ⓘ
pub fn profile_key(&self) -> &[u8] ⓘ
Returns the value of profile_key
, or the default value if profile_key
is unset.
sourcepub fn read_receipts(&self) -> bool
pub fn read_receipts(&self) -> bool
Returns the value of read_receipts
, or the default value if read_receipts
is unset.
sourcepub fn provisioning_version(&self) -> u32
pub fn provisioning_version(&self) -> u32
Returns the value of provisioning_version
, or the default value if provisioning_version
is unset.
sourcepub fn pni_identity_key_public(&self) -> &[u8] ⓘ
pub fn pni_identity_key_public(&self) -> &[u8] ⓘ
Returns the value of pni_identity_key_public
, or the default value if pni_identity_key_public
is unset.
sourcepub fn pni_identity_key_private(&self) -> &[u8] ⓘ
pub fn pni_identity_key_private(&self) -> &[u8] ⓘ
Returns the value of pni_identity_key_private
, or the default value if pni_identity_key_private
is unset.
sourcepub fn master_key(&self) -> &[u8] ⓘ
pub fn master_key(&self) -> &[u8] ⓘ
Returns the value of master_key
, or the default value if master_key
is unset.
Trait Implementations§
source§impl Clone for ProvisionMessage
impl Clone for ProvisionMessage
source§fn clone(&self) -> ProvisionMessage
fn clone(&self) -> ProvisionMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProvisionMessage
impl Debug for ProvisionMessage
source§impl Default for ProvisionMessage
impl Default for ProvisionMessage
source§impl Message for ProvisionMessage
impl Message for ProvisionMessage
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ProvisionMessage
impl PartialEq for ProvisionMessage
source§fn eq(&self, other: &ProvisionMessage) -> bool
fn eq(&self, other: &ProvisionMessage) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProvisionMessage
Auto Trait Implementations§
impl Freeze for ProvisionMessage
impl RefUnwindSafe for ProvisionMessage
impl Send for ProvisionMessage
impl Sync for ProvisionMessage
impl Unpin for ProvisionMessage
impl UnwindSafe for ProvisionMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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