pub enum PrivacyKey {
Show 14 variants
StatusTimestamp,
ChatInvite,
PhoneCall,
PhoneP2P,
Forwards,
ProfilePhoto,
PhoneNumber,
AddedByPhone,
VoiceMessages,
About,
Birthday,
StarGiftsAutoSave,
NoPaidMessages,
SavedMusic,
}Expand description
Variants§
StatusTimestamp
ChatInvite
PhoneCall
PhoneP2P
Forwards
ProfilePhoto
PhoneNumber
AddedByPhone
VoiceMessages
About
Birthday
StarGiftsAutoSave
NoPaidMessages
SavedMusic
Trait Implementations§
Source§impl Clone for PrivacyKey
impl Clone for PrivacyKey
Source§fn clone(&self) -> PrivacyKey
fn clone(&self) -> PrivacyKey
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 PrivacyKey
impl Debug for PrivacyKey
Source§impl Deserializable for PrivacyKey
impl Deserializable for PrivacyKey
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<PrivacyKeyAbout> for PrivacyKey
impl From<PrivacyKeyAbout> for PrivacyKey
Source§fn from(_x: PrivacyKeyAbout) -> Self
fn from(_x: PrivacyKeyAbout) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyAddedByPhone> for PrivacyKey
impl From<PrivacyKeyAddedByPhone> for PrivacyKey
Source§fn from(_x: PrivacyKeyAddedByPhone) -> Self
fn from(_x: PrivacyKeyAddedByPhone) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyBirthday> for PrivacyKey
impl From<PrivacyKeyBirthday> for PrivacyKey
Source§fn from(_x: PrivacyKeyBirthday) -> Self
fn from(_x: PrivacyKeyBirthday) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyChatInvite> for PrivacyKey
impl From<PrivacyKeyChatInvite> for PrivacyKey
Source§fn from(_x: PrivacyKeyChatInvite) -> Self
fn from(_x: PrivacyKeyChatInvite) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyForwards> for PrivacyKey
impl From<PrivacyKeyForwards> for PrivacyKey
Source§fn from(_x: PrivacyKeyForwards) -> Self
fn from(_x: PrivacyKeyForwards) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyNoPaidMessages> for PrivacyKey
impl From<PrivacyKeyNoPaidMessages> for PrivacyKey
Source§fn from(_x: PrivacyKeyNoPaidMessages) -> Self
fn from(_x: PrivacyKeyNoPaidMessages) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyPhoneCall> for PrivacyKey
impl From<PrivacyKeyPhoneCall> for PrivacyKey
Source§fn from(_x: PrivacyKeyPhoneCall) -> Self
fn from(_x: PrivacyKeyPhoneCall) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyPhoneNumber> for PrivacyKey
impl From<PrivacyKeyPhoneNumber> for PrivacyKey
Source§fn from(_x: PrivacyKeyPhoneNumber) -> Self
fn from(_x: PrivacyKeyPhoneNumber) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyPhoneP2P> for PrivacyKey
impl From<PrivacyKeyPhoneP2P> for PrivacyKey
Source§fn from(_x: PrivacyKeyPhoneP2P) -> Self
fn from(_x: PrivacyKeyPhoneP2P) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyProfilePhoto> for PrivacyKey
impl From<PrivacyKeyProfilePhoto> for PrivacyKey
Source§fn from(_x: PrivacyKeyProfilePhoto) -> Self
fn from(_x: PrivacyKeyProfilePhoto) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeySavedMusic> for PrivacyKey
impl From<PrivacyKeySavedMusic> for PrivacyKey
Source§fn from(_x: PrivacyKeySavedMusic) -> Self
fn from(_x: PrivacyKeySavedMusic) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyStarGiftsAutoSave> for PrivacyKey
impl From<PrivacyKeyStarGiftsAutoSave> for PrivacyKey
Source§fn from(_x: PrivacyKeyStarGiftsAutoSave) -> Self
fn from(_x: PrivacyKeyStarGiftsAutoSave) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyStatusTimestamp> for PrivacyKey
impl From<PrivacyKeyStatusTimestamp> for PrivacyKey
Source§fn from(_x: PrivacyKeyStatusTimestamp) -> Self
fn from(_x: PrivacyKeyStatusTimestamp) -> Self
Converts to this type from the input type.
Source§impl From<PrivacyKeyVoiceMessages> for PrivacyKey
impl From<PrivacyKeyVoiceMessages> for PrivacyKey
Source§fn from(_x: PrivacyKeyVoiceMessages) -> Self
fn from(_x: PrivacyKeyVoiceMessages) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrivacyKey
impl PartialEq for PrivacyKey
Source§impl Serializable for PrivacyKey
impl Serializable for PrivacyKey
impl StructuralPartialEq for PrivacyKey
Auto Trait Implementations§
impl Freeze for PrivacyKey
impl RefUnwindSafe for PrivacyKey
impl Send for PrivacyKey
impl Sync for PrivacyKey
impl Unpin for PrivacyKey
impl UnsafeUnpin for PrivacyKey
impl UnwindSafe for PrivacyKey
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