pub struct NewDeviceRegistration {
pub phone_number: E164,
pub device_id: DeviceId,
pub registration_id: u32,
pub pni_registration_id: u32,
pub service_ids: ServiceIds,
pub aci_private_key: PrivateKey,
pub aci_public_key: IdentityKey,
pub pni_private_key: PrivateKey,
pub pni_public_key: IdentityKey,
pub profile_key: ProfileKey,
pub master_key: Option<Vec<u8>>,
pub account_entropy_pool: Option<AccountEntropyPool>,
}Fields§
§phone_number: E164§device_id: DeviceId§registration_id: u32§pni_registration_id: u32§service_ids: ServiceIds§aci_private_key: PrivateKey§aci_public_key: IdentityKey§pni_private_key: PrivateKey§pni_public_key: IdentityKey§profile_key: ProfileKey§master_key: Option<Vec<u8>>Account master key — the deprecated masterKey field 13 of
ProvisionMessage. Required by linked devices for legacy state
(Storage Service, KBS) and still sent by primary devices. May be
absent if the primary is on a build that has fully migrated to
account_entropy_pool only.
account_entropy_pool: Option<AccountEntropyPool>Account Entropy Pool — the modern accountEntropyPool field 15.
64-character alphanumeric string from which the canonical master
key is derived (AccountEntropyPool::derive_svr_key). When present,
it should be preferred over the deprecated master_key field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewDeviceRegistration
impl RefUnwindSafe for NewDeviceRegistration
impl Send for NewDeviceRegistration
impl Sync for NewDeviceRegistration
impl Unpin for NewDeviceRegistration
impl UnsafeUnpin for NewDeviceRegistration
impl UnwindSafe for NewDeviceRegistration
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§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> 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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].