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
sourceimpl AsRef<UserPrivacySetting> for UserPrivacySetting
impl AsRef<UserPrivacySetting> for UserPrivacySetting
sourcefn as_ref(&self) -> &UserPrivacySetting
fn as_ref(&self) -> &UserPrivacySetting
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for UserPrivacySetting
impl Clone for UserPrivacySetting
sourcefn clone(&self) -> UserPrivacySetting
fn clone(&self) -> UserPrivacySetting
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UserPrivacySetting
impl Debug for UserPrivacySetting
sourceimpl Default for UserPrivacySetting
impl Default for UserPrivacySetting
sourceimpl<'de> Deserialize<'de> for UserPrivacySetting
impl<'de> Deserialize<'de> for UserPrivacySetting
sourcefn 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
sourceimpl Serialize for UserPrivacySetting
impl Serialize for UserPrivacySetting
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more