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 cover_frame_timestamp: f64,
pub video: File,
}Expand description
Describes a video file posted as a story
Fields§
§duration: f64Duration of the video, in seconds
width: i32Video width
height: i32Video height
has_stickers: boolTrue, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets
is_animation: boolTrue, 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: i32Size of file prefix, which is expected to be preloaded, in bytes
cover_frame_timestamp: f64Timestamp of the frame used as video thumbnail
video: FileFile 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 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 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 UnsafeUnpin 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