pub struct MessageVideo {
pub video: Video,
pub alternative_videos: Vec<AlternativeVideo>,
pub storyboards: Vec<VideoStoryboard>,
pub cover: Option<Photo>,
pub start_timestamp: i32,
pub caption: FormattedText,
pub show_caption_above_media: bool,
pub has_spoiler: bool,
pub is_secret: bool,
}Expand description
A video message
Fields§
§video: VideoThe video description
alternative_videos: Vec<AlternativeVideo>Alternative qualities of the video
storyboards: Vec<VideoStoryboard>Available storyboards for the video
cover: Option<Photo>Cover of the video; may be null if none
start_timestamp: i32Timestamp from which the video playing must start, in seconds
caption: FormattedTextVideo caption
show_caption_above_media: boolTrue, if the caption must be shown above the video; otherwise, the caption must be shown below the video
has_spoiler: boolTrue, if the video preview must be covered by a spoiler animation
is_secret: boolTrue, if the video thumbnail must be blurred and the video must be shown only while tapped
Trait Implementations§
Source§impl Clone for MessageVideo
impl Clone for MessageVideo
Source§fn clone(&self) -> MessageVideo
fn clone(&self) -> MessageVideo
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 MessageVideo
impl Debug for MessageVideo
Source§impl<'de> Deserialize<'de> for MessageVideo
impl<'de> Deserialize<'de> for MessageVideo
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 MessageVideo
impl PartialEq for MessageVideo
Source§impl Serialize for MessageVideo
impl Serialize for MessageVideo
impl StructuralPartialEq for MessageVideo
Auto Trait Implementations§
impl Freeze for MessageVideo
impl RefUnwindSafe for MessageVideo
impl Send for MessageVideo
impl Sync for MessageVideo
impl Unpin for MessageVideo
impl UnsafeUnpin for MessageVideo
impl UnwindSafe for MessageVideo
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