pub enum DocumentAttribute {
ImageSize(DocumentAttributeImageSize),
Animated,
Sticker(DocumentAttributeSticker),
Video(DocumentAttributeVideo),
Audio(DocumentAttributeAudio),
Filename(DocumentAttributeFilename),
HasStickers,
CustomEmoji(DocumentAttributeCustomEmoji),
}Expand description
Variants§
ImageSize(DocumentAttributeImageSize)
Animated
Sticker(DocumentAttributeSticker)
Video(DocumentAttributeVideo)
Audio(DocumentAttributeAudio)
Filename(DocumentAttributeFilename)
HasStickers
CustomEmoji(DocumentAttributeCustomEmoji)
Trait Implementations§
Source§impl Clone for DocumentAttribute
impl Clone for DocumentAttribute
Source§fn clone(&self) -> DocumentAttribute
fn clone(&self) -> DocumentAttribute
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 DocumentAttribute
impl Debug for DocumentAttribute
Source§impl Deserializable for DocumentAttribute
impl Deserializable for DocumentAttribute
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<DocumentAttributeAnimated> for DocumentAttribute
impl From<DocumentAttributeAnimated> for DocumentAttribute
Source§fn from(_x: DocumentAttributeAnimated) -> Self
fn from(_x: DocumentAttributeAnimated) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeAudio> for DocumentAttribute
impl From<DocumentAttributeAudio> for DocumentAttribute
Source§fn from(x: DocumentAttributeAudio) -> Self
fn from(x: DocumentAttributeAudio) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeCustomEmoji> for DocumentAttribute
impl From<DocumentAttributeCustomEmoji> for DocumentAttribute
Source§fn from(x: DocumentAttributeCustomEmoji) -> Self
fn from(x: DocumentAttributeCustomEmoji) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeFilename> for DocumentAttribute
impl From<DocumentAttributeFilename> for DocumentAttribute
Source§fn from(x: DocumentAttributeFilename) -> Self
fn from(x: DocumentAttributeFilename) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeHasStickers> for DocumentAttribute
impl From<DocumentAttributeHasStickers> for DocumentAttribute
Source§fn from(_x: DocumentAttributeHasStickers) -> Self
fn from(_x: DocumentAttributeHasStickers) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeImageSize> for DocumentAttribute
impl From<DocumentAttributeImageSize> for DocumentAttribute
Source§fn from(x: DocumentAttributeImageSize) -> Self
fn from(x: DocumentAttributeImageSize) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeSticker> for DocumentAttribute
impl From<DocumentAttributeSticker> for DocumentAttribute
Source§fn from(x: DocumentAttributeSticker) -> Self
fn from(x: DocumentAttributeSticker) -> Self
Converts to this type from the input type.
Source§impl From<DocumentAttributeVideo> for DocumentAttribute
impl From<DocumentAttributeVideo> for DocumentAttribute
Source§fn from(x: DocumentAttributeVideo) -> Self
fn from(x: DocumentAttributeVideo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DocumentAttribute
impl PartialEq for DocumentAttribute
Source§impl Serializable for DocumentAttribute
impl Serializable for DocumentAttribute
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeAudio
impl TryFrom<DocumentAttribute> for DocumentAttributeAudio
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeCustomEmoji
impl TryFrom<DocumentAttribute> for DocumentAttributeCustomEmoji
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeFilename
impl TryFrom<DocumentAttribute> for DocumentAttributeFilename
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeImageSize
impl TryFrom<DocumentAttribute> for DocumentAttributeImageSize
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeSticker
impl TryFrom<DocumentAttribute> for DocumentAttributeSticker
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeVideo
impl TryFrom<DocumentAttribute> for DocumentAttributeVideo
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
impl StructuralPartialEq for DocumentAttribute
Auto Trait Implementations§
impl Freeze for DocumentAttribute
impl RefUnwindSafe for DocumentAttribute
impl Send for DocumentAttribute
impl Sync for DocumentAttribute
impl Unpin for DocumentAttribute
impl UnsafeUnpin for DocumentAttribute
impl UnwindSafe for DocumentAttribute
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