pub enum UserPrivacySetting {
ShowStatus,
ShowProfilePhoto,
ShowLinkInForwardedMessages,
ShowPhoneNumber,
ShowBio,
ShowBirthdate,
AllowChatInvites,
AllowCalls,
AllowPeerToPeerCalls,
AllowFindingByPhoneNumber,
AllowPrivateVoiceAndVideoNoteMessages,
}
Variants§
ShowStatus
A privacy setting for managing whether the user’s online status is visible
ShowProfilePhoto
A privacy setting for managing whether the user’s profile photo is visible
ShowLinkInForwardedMessages
A privacy setting for managing whether a link to the user’s account is included in forwarded messages
ShowPhoneNumber
A privacy setting for managing whether the user’s phone number is visible
ShowBio
A privacy setting for managing whether the user’s bio is visible
ShowBirthdate
A privacy setting for managing whether the user’s birthdate is visible
AllowChatInvites
A privacy setting for managing whether the user can be invited to chats
AllowCalls
A privacy setting for managing whether the user can be called
AllowPeerToPeerCalls
A privacy setting for managing whether peer-to-peer connections can be used for calls
AllowFindingByPhoneNumber
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”
AllowPrivateVoiceAndVideoNoteMessages
A privacy setting for managing whether the user can receive voice and video messages in private chats; for Telegram Premium users only
Trait Implementations§
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