pub struct Format {
pub filename: String,
pub nb_streams: u64,
pub nb_programs: u64,
pub nb_stream_groups: u64,
pub format_name: String,
pub format_long_name: String,
pub start_time: Option<Duration>,
pub duration: Option<Duration>,
pub size: i64,
pub bit_rate: Option<i64>,
pub probe_score: u64,
pub tags: Option<FormatTags>,
}Expand description
Parsed Format
Fields§
§filename: StringFilename
nb_streams: u64Number of streams
nb_programs: u64Number of programs
nb_stream_groups: u64§format_name: Stringeg. matroska,webm
format_long_name: Stringeg. Matroska / WebM
start_time: Option<Duration>§duration: Option<Duration>Length in seconds
size: i64Size in bytes
bit_rate: Option<i64>§probe_score: u64value from 0-100
File Metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
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 Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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