pub struct SegmentTemplate {Show 18 fields
pub initialization: Option<String>,
pub media: Option<String>,
pub index: Option<String>,
pub indexRange: Option<String>,
pub indexRangeExact: Option<bool>,
pub SegmentTimeline: Option<SegmentTimeline>,
pub BitstreamSwitching: Option<BitstreamSwitching>,
pub RepresentationIndex: Option<RepresentationIndex>,
pub startNumber: Option<u64>,
pub duration: Option<f64>,
pub timescale: Option<u64>,
pub eptDelta: Option<i64>,
pub pbDelta: Option<i64>,
pub presentationTimeOffset: Option<u64>,
pub bitstreamSwitching: Option<String>,
pub availabilityTimeOffset: Option<f64>,
pub availabilityTimeComplete: Option<bool>,
pub failover_content: Option<FailoverContent>,
}
Expand description
Allows template-based SegmentURL
construction. Specifies various substitution rules using
dynamic values such as $Time$
and $Number$
that map to a sequence of Segments.
Fields§
§initialization: Option<String>
§media: Option<String>
§index: Option<String>
§indexRange: Option<String>
§indexRangeExact: Option<bool>
§SegmentTimeline: Option<SegmentTimeline>
§BitstreamSwitching: Option<BitstreamSwitching>
§RepresentationIndex: Option<RepresentationIndex>
§startNumber: Option<u64>
§duration: Option<f64>
§timescale: Option<u64>
§eptDelta: Option<i64>
Indicates a possible offset between media segment start/end points and period start/end points.
pbDelta: Option<i64>
Specifies the difference between the presentation duration of this Representation and the Period duration. Expressed in units of @timescale.
presentationTimeOffset: Option<u64>
§bitstreamSwitching: Option<String>
§availabilityTimeOffset: Option<f64>
§availabilityTimeComplete: Option<bool>
§failover_content: Option<FailoverContent>
Trait Implementations§
Source§impl Clone for SegmentTemplate
impl Clone for SegmentTemplate
Source§fn clone(&self) -> SegmentTemplate
fn clone(&self) -> SegmentTemplate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SegmentTemplate
impl Debug for SegmentTemplate
Source§impl Default for SegmentTemplate
impl Default for SegmentTemplate
Source§fn default() -> SegmentTemplate
fn default() -> SegmentTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SegmentTemplatewhere
SegmentTemplate: Default,
impl<'de> Deserialize<'de> for SegmentTemplatewhere
SegmentTemplate: Default,
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
Source§impl PartialEq for SegmentTemplate
impl PartialEq for SegmentTemplate
Source§impl Serialize for SegmentTemplate
impl Serialize for SegmentTemplate
impl StructuralPartialEq for SegmentTemplate
Auto Trait Implementations§
impl Freeze for SegmentTemplate
impl RefUnwindSafe for SegmentTemplate
impl Send for SegmentTemplate
impl Sync for SegmentTemplate
impl Unpin for SegmentTemplate
impl UnwindSafe for SegmentTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more