#[non_exhaustive]pub struct AudioRendition {
pub set: usize,
pub group: Option<String>,
pub name: String,
pub language: Option<String>,
pub default: bool,
pub autoselect: bool,
pub init_url: Option<String>,
pub reps: Vec<RepRef>,
}Expand description
One selectable audio AdaptationSet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.set: usizeAdaptationSet index in the Period.
group: Option<String>@group, else @id.
name: StringFirst Label, else @lang, else the first Representation’s @id.
language: Option<String>@lang.
default: boolRole main (DASH has no DEFAULT flag).
autoselect: boolAlways true: DASH has no AUTOSELECT flag, every set may be chosen.
init_url: Option<String>Absolute init URL of the chosen (else first) Representation.
reps: Vec<RepRef>The selectable Representations.
Trait Implementations§
Source§impl Clone for AudioRendition
impl Clone for AudioRendition
Source§impl Debug for AudioRendition
impl Debug for AudioRendition
Source§impl PartialEq for AudioRendition
impl PartialEq for AudioRendition
impl StructuralPartialEq for AudioRendition
Auto Trait Implementations§
impl Freeze for AudioRendition
impl RefUnwindSafe for AudioRendition
impl Send for AudioRendition
impl Sync for AudioRendition
impl Unpin for AudioRendition
impl UnsafeUnpin for AudioRendition
impl UnwindSafe for AudioRendition
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