pub struct Representation {
pub id: String,
pub stream: StreamInfo,
pub init: String,
pub media: String,
pub timescale: u32,
pub segment_durations: Vec<u64>,
}Expand description
One selectable rendition within an adaptation set.
Fields§
§id: StringA unique id within the manifest (also used in segment URLs).
stream: StreamInfoThe stream this representation carries.
init: StringInitialization segment URL.
media: StringMedia segment URL template (may contain $Number$).
timescale: u32Timescale the segment durations are expressed in.
segment_durations: Vec<u64>Per-segment durations, in timescale ticks, in order.
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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