pub struct StoryVideo {
pub duration: f64,
pub width: i32,
pub height: i32,
pub has_stickers: bool,
pub is_animation: bool,
pub minithumbnail: Option<Minithumbnail>,
pub thumbnail: Option<Thumbnail>,
pub preload_prefix_size: i32,
pub video: File,
}
Expand description
Describes a video file sent in a story
Fields§
§duration: f64
Duration of the video, in seconds
width: i32
Video width
height: i32
Video height
has_stickers: bool
True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets
is_animation: bool
True, if the video has no sound
minithumbnail: Option<Minithumbnail>
Video minithumbnail; may be null
thumbnail: Option<Thumbnail>
Video thumbnail in JPEG or MPEG4 format; may be null
preload_prefix_size: i32
Size of file prefix, which is supposed to be preloaded, in bytes
video: File
File containing the video
Trait Implementations§
Source§impl Clone for StoryVideo
impl Clone for StoryVideo
Source§fn clone(&self) -> StoryVideo
fn clone(&self) -> StoryVideo
Returns a copy 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 StoryVideo
impl Debug for StoryVideo
Source§impl<'de> Deserialize<'de> for StoryVideo
impl<'de> Deserialize<'de> for StoryVideo
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
Source§impl PartialEq for StoryVideo
impl PartialEq for StoryVideo
Source§impl Serialize for StoryVideo
impl Serialize for StoryVideo
impl StructuralPartialEq for StoryVideo
Auto Trait Implementations§
impl Freeze for StoryVideo
impl RefUnwindSafe for StoryVideo
impl Send for StoryVideo
impl Sync for StoryVideo
impl Unpin for StoryVideo
impl UnwindSafe for StoryVideo
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