pub struct Period {Show 21 fields
pub href: Option<String>,
pub actuate: Option<String>,
pub id: Option<String>,
pub start: Option<Duration>,
pub duration: Option<Duration>,
pub bitstreamSwitching: Option<bool>,
pub BaseURL: Vec<BaseURL>,
pub SegmentBase: Option<SegmentBase>,
pub SegmentList: Option<SegmentList>,
pub SegmentTemplate: Option<SegmentTemplate>,
pub asset_identifier: Option<AssetIdentifier>,
pub event_streams: Vec<EventStream>,
pub service_description: Vec<ServiceDescription>,
pub ContentProtection: Vec<ContentProtection>,
pub adaptations: Vec<AdaptationSet>,
pub subsets: Vec<Subset>,
pub supplemental_property: Vec<SupplementalProperty>,
pub empty_adaptations: Vec<AdaptationSet>,
pub group_label: Vec<Label>,
pub pre_selections: Vec<Preselection>,
pub essential_property: Vec<EssentialProperty>,
}
Expand description
Describes a chunk of the content with a start time and a duration. Content can be split up into multiple periods (such as chapters, advertising segments).
Fields§
§href: Option<String>
A “remote resource”, following the XML Linking Language (XLink) specification.
actuate: Option<String>
§id: Option<String>
§start: Option<Duration>
The start time of the Period relative to the MPD availability start time.
duration: Option<Duration>
§bitstreamSwitching: Option<bool>
§BaseURL: Vec<BaseURL>
§SegmentBase: Option<SegmentBase>
§SegmentList: Option<SegmentList>
§SegmentTemplate: Option<SegmentTemplate>
§asset_identifier: Option<AssetIdentifier>
§event_streams: Vec<EventStream>
§service_description: Vec<ServiceDescription>
§ContentProtection: Vec<ContentProtection>
§adaptations: Vec<AdaptationSet>
§subsets: Vec<Subset>
§supplemental_property: Vec<SupplementalProperty>
§empty_adaptations: Vec<AdaptationSet>
§group_label: Vec<Label>
§pre_selections: Vec<Preselection>
§essential_property: Vec<EssentialProperty>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Period
impl<'de> Deserialize<'de> for Period
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 StructuralPartialEq for Period
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
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