pub enum InputPrivacyRule {
InputPrivacyValueAllowContacts,
InputPrivacyValueAllowAll,
InputPrivacyValueAllowUsers(InputPrivacyValueAllowUsers),
InputPrivacyValueDisallowContacts,
InputPrivacyValueDisallowAll,
InputPrivacyValueDisallowUsers(InputPrivacyValueDisallowUsers),
InputPrivacyValueAllowChatParticipants(InputPrivacyValueAllowChatParticipants),
InputPrivacyValueDisallowChatParticipants(InputPrivacyValueDisallowChatParticipants),
InputPrivacyValueAllowCloseFriends,
InputPrivacyValueAllowPremium,
InputPrivacyValueAllowBots,
InputPrivacyValueDisallowBots,
}Expand description
Variants§
InputPrivacyValueAllowContacts
InputPrivacyValueAllowAll
InputPrivacyValueAllowUsers(InputPrivacyValueAllowUsers)
InputPrivacyValueDisallowContacts
InputPrivacyValueDisallowAll
InputPrivacyValueDisallowUsers(InputPrivacyValueDisallowUsers)
InputPrivacyValueAllowChatParticipants(InputPrivacyValueAllowChatParticipants)
InputPrivacyValueDisallowChatParticipants(InputPrivacyValueDisallowChatParticipants)
InputPrivacyValueAllowCloseFriends
InputPrivacyValueAllowPremium
InputPrivacyValueAllowBots
InputPrivacyValueDisallowBots
Trait Implementations§
Source§impl Clone for InputPrivacyRule
impl Clone for InputPrivacyRule
Source§fn clone(&self) -> InputPrivacyRule
fn clone(&self) -> InputPrivacyRule
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 InputPrivacyRule
impl Debug for InputPrivacyRule
Source§impl Deserializable for InputPrivacyRule
impl Deserializable for InputPrivacyRule
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<InputPrivacyValueAllowAll> for InputPrivacyRule
impl From<InputPrivacyValueAllowAll> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueAllowAll) -> Self
fn from(_x: InputPrivacyValueAllowAll) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowBots> for InputPrivacyRule
impl From<InputPrivacyValueAllowBots> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueAllowBots) -> Self
fn from(_x: InputPrivacyValueAllowBots) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowChatParticipants> for InputPrivacyRule
impl From<InputPrivacyValueAllowChatParticipants> for InputPrivacyRule
Source§fn from(x: InputPrivacyValueAllowChatParticipants) -> Self
fn from(x: InputPrivacyValueAllowChatParticipants) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowCloseFriends> for InputPrivacyRule
impl From<InputPrivacyValueAllowCloseFriends> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueAllowCloseFriends) -> Self
fn from(_x: InputPrivacyValueAllowCloseFriends) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowContacts> for InputPrivacyRule
impl From<InputPrivacyValueAllowContacts> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueAllowContacts) -> Self
fn from(_x: InputPrivacyValueAllowContacts) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowPremium> for InputPrivacyRule
impl From<InputPrivacyValueAllowPremium> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueAllowPremium) -> Self
fn from(_x: InputPrivacyValueAllowPremium) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueAllowUsers> for InputPrivacyRule
impl From<InputPrivacyValueAllowUsers> for InputPrivacyRule
Source§fn from(x: InputPrivacyValueAllowUsers) -> Self
fn from(x: InputPrivacyValueAllowUsers) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueDisallowAll> for InputPrivacyRule
impl From<InputPrivacyValueDisallowAll> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueDisallowAll) -> Self
fn from(_x: InputPrivacyValueDisallowAll) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueDisallowBots> for InputPrivacyRule
impl From<InputPrivacyValueDisallowBots> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueDisallowBots) -> Self
fn from(_x: InputPrivacyValueDisallowBots) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueDisallowChatParticipants> for InputPrivacyRule
impl From<InputPrivacyValueDisallowChatParticipants> for InputPrivacyRule
Source§fn from(x: InputPrivacyValueDisallowChatParticipants) -> Self
fn from(x: InputPrivacyValueDisallowChatParticipants) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueDisallowContacts> for InputPrivacyRule
impl From<InputPrivacyValueDisallowContacts> for InputPrivacyRule
Source§fn from(_x: InputPrivacyValueDisallowContacts) -> Self
fn from(_x: InputPrivacyValueDisallowContacts) -> Self
Converts to this type from the input type.
Source§impl From<InputPrivacyValueDisallowUsers> for InputPrivacyRule
impl From<InputPrivacyValueDisallowUsers> for InputPrivacyRule
Source§fn from(x: InputPrivacyValueDisallowUsers) -> Self
fn from(x: InputPrivacyValueDisallowUsers) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputPrivacyRule
impl PartialEq for InputPrivacyRule
Source§impl Serializable for InputPrivacyRule
impl Serializable for InputPrivacyRule
Source§impl TryFrom<InputPrivacyRule> for InputPrivacyValueAllowChatParticipants
impl TryFrom<InputPrivacyRule> for InputPrivacyValueAllowChatParticipants
Source§type Error = InputPrivacyRule
type Error = InputPrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<InputPrivacyRule> for InputPrivacyValueAllowUsers
impl TryFrom<InputPrivacyRule> for InputPrivacyValueAllowUsers
Source§type Error = InputPrivacyRule
type Error = InputPrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<InputPrivacyRule> for InputPrivacyValueDisallowChatParticipants
impl TryFrom<InputPrivacyRule> for InputPrivacyValueDisallowChatParticipants
Source§type Error = InputPrivacyRule
type Error = InputPrivacyRule
The type returned in the event of a conversion error.
Source§impl TryFrom<InputPrivacyRule> for InputPrivacyValueDisallowUsers
impl TryFrom<InputPrivacyRule> for InputPrivacyValueDisallowUsers
Source§type Error = InputPrivacyRule
type Error = InputPrivacyRule
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputPrivacyRule
Auto Trait Implementations§
impl Freeze for InputPrivacyRule
impl RefUnwindSafe for InputPrivacyRule
impl Send for InputPrivacyRule
impl Sync for InputPrivacyRule
impl Unpin for InputPrivacyRule
impl UnsafeUnpin for InputPrivacyRule
impl UnwindSafe for InputPrivacyRule
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