pub enum UserPrivacySettingRule {
AllowAll,
AllowContacts,
AllowPremiumUsers,
AllowUsers(UserPrivacySettingRuleAllowUsers),
AllowChatMembers(UserPrivacySettingRuleAllowChatMembers),
RestrictAll,
RestrictContacts,
RestrictUsers(UserPrivacySettingRuleRestrictUsers),
RestrictChatMembers(UserPrivacySettingRuleRestrictChatMembers),
}
Variants§
AllowAll
A rule to allow all users to do something
AllowContacts
A rule to allow all contacts of the user to do something
AllowPremiumUsers
A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites
AllowUsers(UserPrivacySettingRuleAllowUsers)
A rule to allow certain specified users to do something
AllowChatMembers(UserPrivacySettingRuleAllowChatMembers)
A rule to allow all members of certain specified basic groups and supergroups to doing something
RestrictAll
A rule to restrict all users from doing something
RestrictContacts
A rule to restrict all contacts of the user from doing something
RestrictUsers(UserPrivacySettingRuleRestrictUsers)
A rule to restrict all specified users from doing something
RestrictChatMembers(UserPrivacySettingRuleRestrictChatMembers)
A rule to restrict all members of specified basic groups and supergroups from doing something
Trait Implementations§
Source§impl Clone for UserPrivacySettingRule
impl Clone for UserPrivacySettingRule
Source§fn clone(&self) -> UserPrivacySettingRule
fn clone(&self) -> UserPrivacySettingRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserPrivacySettingRule
impl Debug for UserPrivacySettingRule
Source§impl<'de> Deserialize<'de> for UserPrivacySettingRule
impl<'de> Deserialize<'de> for UserPrivacySettingRule
Source§fn 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
Source§impl PartialEq for UserPrivacySettingRule
impl PartialEq for UserPrivacySettingRule
Source§impl Serialize for UserPrivacySettingRule
impl Serialize for UserPrivacySettingRule
impl StructuralPartialEq for UserPrivacySettingRule
Auto Trait Implementations§
impl Freeze for UserPrivacySettingRule
impl RefUnwindSafe for UserPrivacySettingRule
impl Send for UserPrivacySettingRule
impl Sync for UserPrivacySettingRule
impl Unpin for UserPrivacySettingRule
impl UnwindSafe for UserPrivacySettingRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more