pub struct VideoNote {
pub duration: i32,
pub waveform: String,
pub length: i32,
pub minithumbnail: Option<Minithumbnail>,
pub thumbnail: Option<Thumbnail>,
pub speech_recognition_result: Option<SpeechRecognitionResult>,
pub video: File,
}
Expand description
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format
Fields§
§duration: i32
Duration of the video, in seconds; as defined by the sender
waveform: String
A waveform representation of the video note’s audio in 5-bit format; may be empty if unknown
length: i32
Video width and height; as defined by the sender
minithumbnail: Option<Minithumbnail>
Video minithumbnail; may be null
thumbnail: Option<Thumbnail>
Video thumbnail in JPEG format; as defined by the sender; may be null
speech_recognition_result: Option<SpeechRecognitionResult>
Result of speech recognition in the video note; may be null
video: File
File containing the video
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoNote
impl<'de> Deserialize<'de> for VideoNote
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
impl StructuralPartialEq for VideoNote
Auto Trait Implementations§
impl Freeze for VideoNote
impl RefUnwindSafe for VideoNote
impl Send for VideoNote
impl Sync for VideoNote
impl Unpin for VideoNote
impl UnwindSafe for VideoNote
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