pub struct AccountRecord {Show 40 fields
pub profile_key: Vec<u8>,
pub given_name: String,
pub family_name: String,
pub avatar_url_path: String,
pub note_to_self_archived: bool,
pub read_receipts: bool,
pub sealed_sender_indicators: bool,
pub typing_indicators: bool,
pub note_to_self_marked_unread: bool,
pub link_previews: bool,
pub phone_number_sharing_mode: i32,
pub unlisted_phone_number: bool,
pub pinned_conversations: Vec<PinnedConversation>,
pub prefer_contact_avatars: bool,
pub payments: Option<Payments>,
pub universal_expire_timer: u32,
pub primary_sends_sms: bool,
pub preferred_reaction_emoji: Vec<String>,
pub subscriber_id: Vec<u8>,
pub subscriber_currency_code: String,
pub display_badges_on_profile: bool,
pub subscription_manually_cancelled: bool,
pub keep_muted_chats_archived: bool,
pub has_set_my_stories_privacy: bool,
pub has_viewed_onboarding_story: bool,
pub stories_disabled: bool,
pub story_view_receipts_enabled: i32,
pub has_seen_group_story_education_sheet: bool,
pub username: String,
pub has_completed_username_onboarding: bool,
pub username_link: Option<UsernameLink>,
pub has_backup: Option<bool>,
pub backup_tier: Option<u64>,
pub backup_subscriber_data: Option<IapSubscriberData>,
pub avatar_color: Option<i32>,
pub backup_tier_history: Option<BackupTierHistory>,
pub notification_profile_manual_override: Option<NotificationProfileManualOverride>,
pub notification_profile_sync_disabled: bool,
pub automatic_key_verification_disabled: bool,
pub has_seen_admin_delete_education_dialog: bool,
}Fields§
§profile_key: Vec<u8>§given_name: String§family_name: String§avatar_url_path: String§note_to_self_archived: bool§read_receipts: bool§sealed_sender_indicators: bool§typing_indicators: bool§note_to_self_marked_unread: bool§link_previews: bool§phone_number_sharing_mode: i32§unlisted_phone_number: bool§pinned_conversations: Vec<PinnedConversation>§prefer_contact_avatars: bool§payments: Option<Payments>§universal_expire_timer: u32§primary_sends_sms: bool§preferred_reaction_emoji: Vec<String>§subscriber_id: Vec<u8>§subscriber_currency_code: String§display_badges_on_profile: bool§subscription_manually_cancelled: bool§keep_muted_chats_archived: bool§has_set_my_stories_privacy: bool§has_viewed_onboarding_story: bool§stories_disabled: bool§story_view_receipts_enabled: i32§has_seen_group_story_education_sheet: bool§username: String§has_completed_username_onboarding: bool§username_link: Option<UsernameLink>§has_backup: Option<bool>Set to true after backups are enabled and one is uploaded.
backup_tier: Option<u64>See zkgroup for integer particular values. Unset if backups are not enabled.
backup_subscriber_data: Option<IapSubscriberData>§avatar_color: Option<i32>§backup_tier_history: Option<BackupTierHistory>§notification_profile_manual_override: Option<NotificationProfileManualOverride>§notification_profile_sync_disabled: bool§automatic_key_verification_disabled: bool§has_seen_admin_delete_education_dialog: boolImplementations§
Source§impl AccountRecord
impl AccountRecord
Sourcepub fn phone_number_sharing_mode(&self) -> PhoneNumberSharingMode
pub fn phone_number_sharing_mode(&self) -> PhoneNumberSharingMode
Returns the enum value of phone_number_sharing_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_phone_number_sharing_mode(&mut self, value: PhoneNumberSharingMode)
pub fn set_phone_number_sharing_mode(&mut self, value: PhoneNumberSharingMode)
Sets phone_number_sharing_mode to the provided enum value.
Sourcepub fn story_view_receipts_enabled(&self) -> OptionalBool
pub fn story_view_receipts_enabled(&self) -> OptionalBool
Returns the enum value of story_view_receipts_enabled, or the default if the field is set to an invalid enum value.
Sourcepub fn set_story_view_receipts_enabled(&mut self, value: OptionalBool)
pub fn set_story_view_receipts_enabled(&mut self, value: OptionalBool)
Sets story_view_receipts_enabled to the provided enum value.
Sourcepub fn has_backup(&self) -> bool
pub fn has_backup(&self) -> bool
Returns the value of has_backup, or the default value if has_backup is unset.
Sourcepub fn backup_tier(&self) -> u64
pub fn backup_tier(&self) -> u64
Returns the value of backup_tier, or the default value if backup_tier is unset.
Sourcepub fn avatar_color(&self) -> AvatarColor
pub fn avatar_color(&self) -> AvatarColor
Returns the enum value of avatar_color, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_avatar_color(&mut self, value: AvatarColor)
pub fn set_avatar_color(&mut self, value: AvatarColor)
Sets avatar_color to the provided enum value.
Trait Implementations§
Source§impl Clone for AccountRecord
impl Clone for AccountRecord
Source§fn clone(&self) -> AccountRecord
fn clone(&self) -> AccountRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountRecord
impl Debug for AccountRecord
Source§impl Default for AccountRecord
impl Default for AccountRecord
Source§impl Message for AccountRecord
impl Message for AccountRecord
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 AccountRecord
impl PartialEq for AccountRecord
impl StructuralPartialEq for AccountRecord
Auto Trait Implementations§
impl Freeze for AccountRecord
impl RefUnwindSafe for AccountRecord
impl Send for AccountRecord
impl Sync for AccountRecord
impl Unpin for AccountRecord
impl UnsafeUnpin for AccountRecord
impl UnwindSafe for AccountRecord
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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].