pub enum PrivacyRule {
PrivacyValueAllowContacts,
PrivacyValueAllowAll,
PrivacyValueAllowUsers(PrivacyValueAllowUsers),
PrivacyValueDisallowContacts,
PrivacyValueDisallowAll,
PrivacyValueDisallowUsers(PrivacyValueDisallowUsers),
PrivacyValueAllowChatParticipants(PrivacyValueAllowChatParticipants),
PrivacyValueDisallowChatParticipants(PrivacyValueDisallowChatParticipants),
PrivacyValueAllowCloseFriends,
PrivacyValueAllowPremium,
PrivacyValueAllowBots,
PrivacyValueDisallowBots,
}Expand description
Variants§
PrivacyValueAllowContacts
PrivacyValueAllowAll
PrivacyValueAllowUsers(PrivacyValueAllowUsers)
PrivacyValueDisallowContacts
PrivacyValueDisallowAll
PrivacyValueDisallowUsers(PrivacyValueDisallowUsers)
PrivacyValueAllowChatParticipants(PrivacyValueAllowChatParticipants)
PrivacyValueDisallowChatParticipants(PrivacyValueDisallowChatParticipants)
PrivacyValueAllowCloseFriends
PrivacyValueAllowPremium
PrivacyValueAllowBots
PrivacyValueDisallowBots
Trait Implementations§
Source§impl Clone for PrivacyRule
impl Clone for PrivacyRule
Source§fn clone(&self) -> PrivacyRule
fn clone(&self) -> PrivacyRule
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 PrivacyRule
impl Debug for PrivacyRule
Source§impl Deserializable for PrivacyRule
impl Deserializable for PrivacyRule
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PrivacyValueAllowAll> for PrivacyRule
impl From<PrivacyValueAllowAll> for PrivacyRule
Source§fn from(_x: PrivacyValueAllowAll) -> Self
fn from(_x: PrivacyValueAllowAll) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowBots> for PrivacyRule
impl From<PrivacyValueAllowBots> for PrivacyRule
Source§fn from(_x: PrivacyValueAllowBots) -> Self
fn from(_x: PrivacyValueAllowBots) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowChatParticipants> for PrivacyRule
impl From<PrivacyValueAllowChatParticipants> for PrivacyRule
Source§fn from(x: PrivacyValueAllowChatParticipants) -> Self
fn from(x: PrivacyValueAllowChatParticipants) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowCloseFriends> for PrivacyRule
impl From<PrivacyValueAllowCloseFriends> for PrivacyRule
Source§fn from(_x: PrivacyValueAllowCloseFriends) -> Self
fn from(_x: PrivacyValueAllowCloseFriends) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowContacts> for PrivacyRule
impl From<PrivacyValueAllowContacts> for PrivacyRule
Source§fn from(_x: PrivacyValueAllowContacts) -> Self
fn from(_x: PrivacyValueAllowContacts) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowPremium> for PrivacyRule
impl From<PrivacyValueAllowPremium> for PrivacyRule
Source§fn from(_x: PrivacyValueAllowPremium) -> Self
fn from(_x: PrivacyValueAllowPremium) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueAllowUsers> for PrivacyRule
impl From<PrivacyValueAllowUsers> for PrivacyRule
Source§fn from(x: PrivacyValueAllowUsers) -> Self
fn from(x: PrivacyValueAllowUsers) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueDisallowAll> for PrivacyRule
impl From<PrivacyValueDisallowAll> for PrivacyRule
Source§fn from(_x: PrivacyValueDisallowAll) -> Self
fn from(_x: PrivacyValueDisallowAll) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueDisallowBots> for PrivacyRule
impl From<PrivacyValueDisallowBots> for PrivacyRule
Source§fn from(_x: PrivacyValueDisallowBots) -> Self
fn from(_x: PrivacyValueDisallowBots) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueDisallowChatParticipants> for PrivacyRule
impl From<PrivacyValueDisallowChatParticipants> for PrivacyRule
Source§fn from(x: PrivacyValueDisallowChatParticipants) -> Self
fn from(x: PrivacyValueDisallowChatParticipants) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueDisallowContacts> for PrivacyRule
impl From<PrivacyValueDisallowContacts> for PrivacyRule
Source§fn from(_x: PrivacyValueDisallowContacts) -> Self
fn from(_x: PrivacyValueDisallowContacts) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyValueDisallowUsers> for PrivacyRule
impl From<PrivacyValueDisallowUsers> for PrivacyRule
Source§fn from(x: PrivacyValueDisallowUsers) -> Self
fn from(x: PrivacyValueDisallowUsers) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrivacyRule
impl PartialEq for PrivacyRule
Source§impl Serializable for PrivacyRule
impl Serializable for PrivacyRule
Source§impl TryFrom<PrivacyRule> for PrivacyValueAllowChatParticipants
impl TryFrom<PrivacyRule> for PrivacyValueAllowChatParticipants
Source§type Error = PrivacyRule
type Error = PrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<PrivacyRule> for PrivacyValueAllowUsers
impl TryFrom<PrivacyRule> for PrivacyValueAllowUsers
Source§type Error = PrivacyRule
type Error = PrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<PrivacyRule> for PrivacyValueDisallowChatParticipants
impl TryFrom<PrivacyRule> for PrivacyValueDisallowChatParticipants
Source§type Error = PrivacyRule
type Error = PrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<PrivacyRule> for PrivacyValueDisallowUsers
impl TryFrom<PrivacyRule> for PrivacyValueDisallowUsers
Source§type Error = PrivacyRule
type Error = PrivacyRule
The type returned in the event of a conversion error.
impl StructuralPartialEq for PrivacyRule
Auto Trait Implementations§
impl Freeze for PrivacyRule
impl RefUnwindSafe for PrivacyRule
impl Send for PrivacyRule
impl Sync for PrivacyRule
impl Unpin for PrivacyRule
impl UnsafeUnpin for PrivacyRule
impl UnwindSafe for PrivacyRule
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