Enum rtdlib::types::UserPrivacySettingRule [−][src]
pub enum UserPrivacySettingRule {
AllowAll(UserPrivacySettingRuleAllowAll),
AllowContacts(UserPrivacySettingRuleAllowContacts),
AllowUsers(UserPrivacySettingRuleAllowUsers),
RestrictAll(UserPrivacySettingRuleRestrictAll),
RestrictContacts(UserPrivacySettingRuleRestrictContacts),
RestrictUsers(UserPrivacySettingRuleRestrictUsers),
// some variants omitted
}
Expand description
Represents a single rule for managing privacy settings
Variants
A rule to allow all users to do something
Tuple Fields of AllowAll
A rule to allow all of a user’s contacts to do something
Tuple Fields of AllowContacts
A rule to allow certain specified users to do something
Tuple Fields of AllowUsers
A rule to restrict all users from doing something
Tuple Fields of RestrictAll
A rule to restrict all contacts of a user from doing something
Tuple Fields of RestrictContacts
A rule to restrict all specified users from doing something
Tuple Fields of RestrictUsers
Implementations
pub fn on_allow_contacts<F: FnOnce(&UserPrivacySettingRuleAllowContacts)>(
&self,
fnc: F
) -> &Self
pub fn on_restrict_contacts<F: FnOnce(&UserPrivacySettingRuleRestrictContacts)>(
&self,
fnc: F
) -> &Self
pub fn on_restrict_users<F: FnOnce(&UserPrivacySettingRuleRestrictUsers)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<UserPrivacySettingRule, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<UserPrivacySettingRule, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more