[−][src]Enum rtdlib::types::UserPrivacySettingRule
Represents a single rule for managing privacy settings
Variants
AllowAll(UserPrivacySettingRuleAllowAll)
A rule to allow all users to do something
AllowChatMembers(UserPrivacySettingRuleAllowChatMembers)
A rule to allow all members of certain specified basic groups and supergroups to doing something
AllowContacts(UserPrivacySettingRuleAllowContacts)
A rule to allow all of a user's contacts to do something
AllowUsers(UserPrivacySettingRuleAllowUsers)
A rule to allow certain specified users to do something
RestrictAll(UserPrivacySettingRuleRestrictAll)
A rule to restrict all users from doing something
RestrictChatMembers(UserPrivacySettingRuleRestrictChatMembers)
A rule to restrict all members of specified basic groups and supergroups from doing something
RestrictContacts(UserPrivacySettingRuleRestrictContacts)
A rule to restrict all contacts of a user from doing something
RestrictUsers(UserPrivacySettingRuleRestrictUsers)
A rule to restrict all specified users from doing something
Implementations
impl UserPrivacySettingRule
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_allow_all(&self) -> bool
[src]
pub fn is_allow_chat_members(&self) -> bool
[src]
pub fn is_allow_contacts(&self) -> bool
[src]
pub fn is_allow_users(&self) -> bool
[src]
pub fn is_restrict_all(&self) -> bool
[src]
pub fn is_restrict_chat_members(&self) -> bool
[src]
pub fn is_restrict_contacts(&self) -> bool
[src]
pub fn is_restrict_users(&self) -> bool
[src]
pub fn on_allow_all<F: FnOnce(&UserPrivacySettingRuleAllowAll)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_chat_members<F: FnOnce(&UserPrivacySettingRuleAllowChatMembers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_contacts<F: FnOnce(&UserPrivacySettingRuleAllowContacts)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_allow_users<F: FnOnce(&UserPrivacySettingRuleAllowUsers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_restrict_all<F: FnOnce(&UserPrivacySettingRuleRestrictAll)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_restrict_chat_members<F: FnOnce(&UserPrivacySettingRuleRestrictChatMembers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_restrict_contacts<F: FnOnce(&UserPrivacySettingRuleRestrictContacts)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_restrict_users<F: FnOnce(&UserPrivacySettingRuleRestrictUsers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_allow_all(&self) -> Option<&UserPrivacySettingRuleAllowAll>
[src]
pub fn as_allow_chat_members(
&self
) -> Option<&UserPrivacySettingRuleAllowChatMembers>
[src]
&self
) -> Option<&UserPrivacySettingRuleAllowChatMembers>
pub fn as_allow_contacts(&self) -> Option<&UserPrivacySettingRuleAllowContacts>
[src]
pub fn as_allow_users(&self) -> Option<&UserPrivacySettingRuleAllowUsers>
[src]
pub fn as_restrict_all(&self) -> Option<&UserPrivacySettingRuleRestrictAll>
[src]
pub fn as_restrict_chat_members(
&self
) -> Option<&UserPrivacySettingRuleRestrictChatMembers>
[src]
&self
) -> Option<&UserPrivacySettingRuleRestrictChatMembers>
pub fn as_restrict_contacts(
&self
) -> Option<&UserPrivacySettingRuleRestrictContacts>
[src]
&self
) -> Option<&UserPrivacySettingRuleRestrictContacts>
pub fn as_restrict_users(&self) -> Option<&UserPrivacySettingRuleRestrictUsers>
[src]
pub fn allow_all<T: AsRef<UserPrivacySettingRuleAllowAll>>(t: T) -> Self
[src]
pub fn allow_chat_members<T: AsRef<UserPrivacySettingRuleAllowChatMembers>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn allow_contacts<T: AsRef<UserPrivacySettingRuleAllowContacts>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn allow_users<T: AsRef<UserPrivacySettingRuleAllowUsers>>(t: T) -> Self
[src]
pub fn restrict_all<T: AsRef<UserPrivacySettingRuleRestrictAll>>(t: T) -> Self
[src]
pub fn restrict_chat_members<T: AsRef<UserPrivacySettingRuleRestrictChatMembers>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn restrict_contacts<T: AsRef<UserPrivacySettingRuleRestrictContacts>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn restrict_users<T: AsRef<UserPrivacySettingRuleRestrictUsers>>(
t: T
) -> Self
[src]
t: T
) -> Self
Trait Implementations
impl AsRef<UserPrivacySettingRule> for UserPrivacySettingRule
[src]
fn as_ref(&self) -> &UserPrivacySettingRule
[src]
impl Clone for UserPrivacySettingRule
[src]
fn clone(&self) -> UserPrivacySettingRule
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UserPrivacySettingRule
[src]
impl Default for UserPrivacySettingRule
[src]
impl<'de> Deserialize<'de> for UserPrivacySettingRule
[src]
fn deserialize<D>(deserializer: D) -> Result<UserPrivacySettingRule, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for UserPrivacySettingRule
[src]
impl Serialize for UserPrivacySettingRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserPrivacySettingRule
impl Send for UserPrivacySettingRule
impl Sync for UserPrivacySettingRule
impl Unpin for UserPrivacySettingRule
impl UnwindSafe for UserPrivacySettingRule
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>,