Enum rust_tdlib::types::UserPrivacySetting [−][src]
pub enum UserPrivacySetting { AllowCalls(UserPrivacySettingAllowCalls), AllowChatInvites(UserPrivacySettingAllowChatInvites), AllowFindingByPhoneNumber(UserPrivacySettingAllowFindingByPhoneNumber), AllowPeerToPeerCalls(UserPrivacySettingAllowPeerToPeerCalls), ShowLinkInForwardedMessages(UserPrivacySettingShowLinkInForwardedMessages), ShowPhoneNumber(UserPrivacySettingShowPhoneNumber), ShowProfilePhoto(UserPrivacySettingShowProfilePhoto), ShowStatus(UserPrivacySettingShowStatus), // some variants omitted }
Expand description
Describes available user privacy settings
Variants
AllowCalls(UserPrivacySettingAllowCalls)
A privacy setting for managing whether the user can be called
AllowChatInvites(UserPrivacySettingAllowChatInvites)
A privacy setting for managing whether the user can be invited to chats
AllowFindingByPhoneNumber(UserPrivacySettingAllowFindingByPhoneNumber)
A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to “Allow contacts” or “Allow all”
AllowPeerToPeerCalls(UserPrivacySettingAllowPeerToPeerCalls)
A privacy setting for managing whether peer-to-peer connections can be used for calls
ShowLinkInForwardedMessages(UserPrivacySettingShowLinkInForwardedMessages)
A privacy setting for managing whether a link to the user’s account is included in forwarded messages
ShowPhoneNumber(UserPrivacySettingShowPhoneNumber)
A privacy setting for managing whether the user’s phone number is visible
ShowProfilePhoto(UserPrivacySettingShowProfilePhoto)
A privacy setting for managing whether the user’s profile photo is visible
ShowStatus(UserPrivacySettingShowStatus)
A privacy setting for managing whether the user’s online status is visible
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserPrivacySetting
impl Send for UserPrivacySetting
impl Sync for UserPrivacySetting
impl Unpin for UserPrivacySetting
impl UnwindSafe for UserPrivacySetting
Blanket Implementations
Mutably borrows from an owned value. Read more