pub struct LivePhoto {
pub duration: i64,
pub file_id: String,
pub file_unique_id: String,
pub height: i64,
pub width: i64,
pub file_size: Option<i64>,
pub mime_type: Option<String>,
pub photo: Option<Vec<PhotoSize>>,
}Expand description
Represents a live photo.
Fields§
§duration: i64Duration of the video in seconds as defined by the sender.
file_id: StringIdentifier for the video file which can be used to download or reuse the file.
file_unique_id: StringUnique identifier for the video file which is supposed to be the same over time and for different bots.
Can’t be used to download or reuse the file.
height: i64Video height as defined by the sender.
width: i64Video width as defined by the sender.
file_size: Option<i64>File size in bytes.
mime_type: Option<String>MIME type of the file as defined by the sender.
photo: Option<Vec<PhotoSize>>Available sizes of the corresponding static photo.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LivePhoto
impl<'de> Deserialize<'de> for LivePhoto
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LivePhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LivePhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for LivePhoto
impl PartialOrd for LivePhoto
Source§impl Serialize for LivePhoto
impl Serialize for LivePhoto
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LivePhoto
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