Enum rust_tdlib::types::UserPrivacySetting
source · 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§
source§impl AsRef<UserPrivacySetting> for UserPrivacySetting
impl AsRef<UserPrivacySetting> for UserPrivacySetting
source§fn as_ref(&self) -> &UserPrivacySetting
fn as_ref(&self) -> &UserPrivacySetting
source§impl Clone for UserPrivacySetting
impl Clone for UserPrivacySetting
source§fn clone(&self) -> UserPrivacySetting
fn clone(&self) -> UserPrivacySetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more