pub struct LivePhoto {
pub photo: Option<Vec<PhotoSize>>,
pub file_id: String,
pub file_unique_id: String,
pub width: u32,
pub height: u32,
pub duration: u32,
pub mime_type: Option<String>,
pub file_size: Option<u64>,
}Expand description
A photo with a short video (live photo).
Fields§
§photo: Option<Vec<PhotoSize>>Available sizes of the corresponding static photo.
file_id: StringIdentifier for the video file.
file_unique_id: StringUnique identifier for the video file, stable across bots and time.
width: u32Video width as defined by the sender.
height: u32Video height as defined by the sender.
duration: u32Duration of the video in seconds.
mime_type: Option<String>MIME type of the file as defined by the sender.
file_size: Option<u64>File size in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LivePhoto
impl<'de> Deserialize<'de> for LivePhoto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LivePhoto
impl RefUnwindSafe for LivePhoto
impl Send for LivePhoto
impl Sync for LivePhoto
impl Unpin for LivePhoto
impl UnsafeUnpin for LivePhoto
impl UnwindSafe for LivePhoto
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