pub struct Period {Show 16 fields
pub id: Option<String>,
pub start: Option<Duration>,
pub duration: Option<Duration>,
pub bitstreamSwitching: Option<bool>,
pub href: Option<String>,
pub actuate: Option<String>,
pub BaseURL: Vec<BaseURL>,
pub essential_property: Vec<EssentialProperty>,
pub SegmentTemplate: Option<SegmentTemplate>,
pub asset_identifier: Option<AssetIdentifier>,
pub event_streams: Vec<EventStream>,
pub ContentProtection: Vec<ContentProtection>,
pub adaptations: Vec<AdaptationSet>,
pub subsets: Vec<Subset>,
pub supplemental_property: Vec<SupplementalProperty>,
pub pre_selections: Vec<Preselection>,
}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§
§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>§href: Option<String>A “remote resource”, following the XML Linking Language (XLink) specification.
actuate: Option<String>§BaseURL: Vec<BaseURL>§essential_property: Vec<EssentialProperty>§SegmentTemplate: Option<SegmentTemplate>§asset_identifier: Option<AssetIdentifier>§event_streams: Vec<EventStream>§ContentProtection: Vec<ContentProtection>§adaptations: Vec<AdaptationSet>§subsets: Vec<Subset>§supplemental_property: Vec<SupplementalProperty>§pre_selections: Vec<Preselection>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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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