pub struct Video {
pub audio_bits_per_sample: i32,
pub audio_channels: i32,
pub audio_format: String,
pub audio_samples_per_second: i32,
pub bitrate: i32,
pub duration: i64,
pub four_cc: Option<String>,
pub frame_rate: f64,
pub height: i32,
pub width: i32,
}Expand description
Struct that groups video-related data items into a single structure.
Fields§
§audio_bits_per_sample: i32Number of audio bits per sample.
audio_channels: i32Number of audio channels.
audio_format: StringName of the audio format (AAC, MP3, etc.).
audio_samples_per_second: i32Number of audio samples per second.
bitrate: i32Bit rate of the video in bits per second.
duration: i64Duration of the file in milliseconds.
four_cc: Option<String>Four character code“ name of the video format.
frame_rate: f64Frame rate of the video.
height: i32Height of the video, in pixels.
width: i32Width of the video, in pixels.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Video
impl<'de> Deserialize<'de> for Video
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
Auto Trait Implementations§
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
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