[−][src]Enum rtdlib::types::UserPrivacySetting
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
impl UserPrivacySetting
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_allow_calls(&self) -> bool
[src]
pub fn is_allow_chat_invites(&self) -> bool
[src]
pub fn is_allow_finding_by_phone_number(&self) -> bool
[src]
pub fn is_allow_peer_to_peer_calls(&self) -> bool
[src]
pub fn is_show_link_in_forwarded_messages(&self) -> bool
[src]
pub fn is_show_phone_number(&self) -> bool
[src]
pub fn is_show_profile_photo(&self) -> bool
[src]
pub fn is_show_status(&self) -> bool
[src]
pub fn on_allow_calls<F: FnOnce(&UserPrivacySettingAllowCalls)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_chat_invites<F: FnOnce(&UserPrivacySettingAllowChatInvites)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_finding_by_phone_number<F: FnOnce(&UserPrivacySettingAllowFindingByPhoneNumber)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_peer_to_peer_calls<F: FnOnce(&UserPrivacySettingAllowPeerToPeerCalls)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_show_link_in_forwarded_messages<F: FnOnce(&UserPrivacySettingShowLinkInForwardedMessages)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_show_phone_number<F: FnOnce(&UserPrivacySettingShowPhoneNumber)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_show_profile_photo<F: FnOnce(&UserPrivacySettingShowProfilePhoto)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_show_status<F: FnOnce(&UserPrivacySettingShowStatus)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_allow_calls(&self) -> Option<&UserPrivacySettingAllowCalls>
[src]
pub fn as_allow_chat_invites(
&self
) -> Option<&UserPrivacySettingAllowChatInvites>
[src]
&self
) -> Option<&UserPrivacySettingAllowChatInvites>
pub fn as_allow_finding_by_phone_number(
&self
) -> Option<&UserPrivacySettingAllowFindingByPhoneNumber>
[src]
&self
) -> Option<&UserPrivacySettingAllowFindingByPhoneNumber>
pub fn as_allow_peer_to_peer_calls(
&self
) -> Option<&UserPrivacySettingAllowPeerToPeerCalls>
[src]
&self
) -> Option<&UserPrivacySettingAllowPeerToPeerCalls>
pub fn as_show_link_in_forwarded_messages(
&self
) -> Option<&UserPrivacySettingShowLinkInForwardedMessages>
[src]
&self
) -> Option<&UserPrivacySettingShowLinkInForwardedMessages>
pub fn as_show_phone_number(&self) -> Option<&UserPrivacySettingShowPhoneNumber>
[src]
pub fn as_show_profile_photo(
&self
) -> Option<&UserPrivacySettingShowProfilePhoto>
[src]
&self
) -> Option<&UserPrivacySettingShowProfilePhoto>
pub fn as_show_status(&self) -> Option<&UserPrivacySettingShowStatus>
[src]
pub fn allow_calls<T: AsRef<UserPrivacySettingAllowCalls>>(t: T) -> Self
[src]
pub fn allow_chat_invites<T: AsRef<UserPrivacySettingAllowChatInvites>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn allow_finding_by_phone_number<T: AsRef<UserPrivacySettingAllowFindingByPhoneNumber>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn allow_peer_to_peer_calls<T: AsRef<UserPrivacySettingAllowPeerToPeerCalls>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn show_link_in_forwarded_messages<T: AsRef<UserPrivacySettingShowLinkInForwardedMessages>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn show_phone_number<T: AsRef<UserPrivacySettingShowPhoneNumber>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn show_profile_photo<T: AsRef<UserPrivacySettingShowProfilePhoto>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn show_status<T: AsRef<UserPrivacySettingShowStatus>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<UserPrivacySetting> for UserPrivacySetting
[src]
fn as_ref(&self) -> &UserPrivacySetting
[src]
impl Clone for UserPrivacySetting
[src]
fn clone(&self) -> UserPrivacySetting
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UserPrivacySetting
[src]
impl Default for UserPrivacySetting
[src]
impl<'de> Deserialize<'de> for UserPrivacySetting
[src]
fn deserialize<D>(deserializer: D) -> Result<UserPrivacySetting, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for UserPrivacySetting
[src]
impl Serialize for UserPrivacySetting
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,