Struct ChangeNumberRequest
pub struct ChangeNumberRequest {
pub number: String,
pub registration_lock: Vec<u8>,
pub pni_identity_key: Vec<u8>,
pub device_messages: Option<IndividualRecipientMessageBundle>,
pub device_pni_signed_pre_keys: HashMap<u32, EcSignedPreKey>,
pub device_pni_pq_last_resort_pre_keys: HashMap<u32, KemSignedPreKey>,
pub pni_registration_ids: HashMap<u32, u32>,
pub verification: Option<Verification>,
}Fields§
§number: StringThe new phone number for the authenticated account.
registration_lock: Vec<u8>The registration lock secret for the new phone number, if the account associated with the new phone number has a registration lock configured.
pni_identity_key: Vec<u8>The new public identity key to use for the phone-number identity (PNI) associated with the new phone number.
device_messages: Option<IndividualRecipientMessageBundle>Synchronization messages to send to companion devices to supply the private keys associated with the new identity key and their new pre-keys. Exactly one message must be supplied for each device other than the sending (primary) device. May be omitted if no companion devices are linked to the account.
device_pni_signed_pre_keys: HashMap<u32, EcSignedPreKey>A new signed EC pre-key for each device on the account, including the sending device, keyed by device ID. Each must be accompanied by a valid signature from the identity key in this request.
device_pni_pq_last_resort_pre_keys: HashMap<u32, KemSignedPreKey>A new signed post-quantum last-resort pre-key for each device on the account, including the sending device, keyed by device ID. Each must be accompanied by a valid signature from the identity key in this request.
pni_registration_ids: HashMap<u32, u32>The new phone-number-identity registration ID for each device on the account, including the sending device, keyed by device ID.
verification: Option<Verification>A means of authenticating the change-number request for the new phone number. Exactly one must be provided.
Trait Implementations§
§impl Clone for ChangeNumberRequest
impl Clone for ChangeNumberRequest
§fn clone(&self) -> ChangeNumberRequest
fn clone(&self) -> ChangeNumberRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ChangeNumberRequest
impl Debug for ChangeNumberRequest
§impl Default for ChangeNumberRequest
impl Default for ChangeNumberRequest
§fn default() -> ChangeNumberRequest
fn default() -> ChangeNumberRequest
§impl Message for ChangeNumberRequest
impl Message for ChangeNumberRequest
§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.§impl PartialEq for ChangeNumberRequest
impl PartialEq for ChangeNumberRequest
impl StructuralPartialEq for ChangeNumberRequest
Auto Trait Implementations§
impl Freeze for ChangeNumberRequest
impl RefUnwindSafe for ChangeNumberRequest
impl Send for ChangeNumberRequest
impl Sync for ChangeNumberRequest
impl Unpin for ChangeNumberRequest
impl UnsafeUnpin for ChangeNumberRequest
impl UnwindSafe for ChangeNumberRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].