pub enum DocumentAttribute {
ImageSize {
w: i32,
h: i32,
},
Animated,
Sticker {
alt: String,
},
Video {
duration: i32,
w: i32,
h: i32,
},
Audio {
duration: i32,
title: Option<String>,
performer: Option<String>,
},
FileName {
file_name: String,
},
Unknown {
ctor: u32,
},
}Expand description
Document attributes carried inside DecryptedMedia::Document.
Variants§
ImageSize
Image dimensions in pixels.
Animated
The document is an animation (GIF).
Sticker
The document is a sticker.
Video
Video metadata.
Audio
Audio metadata.
Fields
FileName
Original file name.
Unknown
An attribute this crate does not know.
Trait Implementations§
Source§impl Clone for DocumentAttribute
impl Clone for DocumentAttribute
Auto Trait Implementations§
impl Forget for DocumentAttribute
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