pub struct VariantInfo {
pub url: String,
pub bandwidth: u32,
pub average_bandwidth: Option<u32>,
pub resolution: Option<(u32, u32)>,
pub codecs: Option<String>,
pub audio_group: Option<String>,
pub subtitles_group: Option<String>,
}Expand description
Information about one variant stream in a master playlist.
Fields§
§url: StringResolved absolute URL of the variant’s media playlist.
bandwidth: u32BANDWIDTH in bits per second.
average_bandwidth: Option<u32>AVERAGE-BANDWIDTH, if present.
resolution: Option<(u32, u32)>RESOLUTION as (width, height), if present.
codecs: Option<String>CODECS attribute, if present.
audio_group: Option<String>AUDIO group id, if any.
subtitles_group: Option<String>SUBTITLES group id, if any.
Trait Implementations§
Source§impl Clone for VariantInfo
impl Clone for VariantInfo
Source§impl Debug for VariantInfo
impl Debug for VariantInfo
Source§impl PartialEq for VariantInfo
impl PartialEq for VariantInfo
impl StructuralPartialEq for VariantInfo
Auto Trait Implementations§
impl Forget for VariantInfo
impl Freeze for VariantInfo
impl RefUnwindSafe for VariantInfo
impl Send for VariantInfo
impl Sync for VariantInfo
impl Unpin for VariantInfo
impl UnsafeUnpin for VariantInfo
impl UnwindSafe for VariantInfo
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