Struct hls_m3u8::tags::ExtXProgramDateTime [−][src]
#[non_exhaustive]pub struct ExtXProgramDateTime<'a> { pub date_time: Cow<'a, str>, // some fields omitted }
Expand description
Associates the first sample of a MediaSegment
with an absolute date
and/or time.
Features
By enabling the chrono
feature the date_time
-field will change from
String
to DateTime<FixedOffset>
and the traits
Deref<Target=DateTime<FixedOffset>>
,DerefMut<Target=DateTime<FixedOffset>>
- and
Copy
will be derived.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.date_time: Cow<'a, str>
The date-time of the first sample of the associated media segment.
Implementations
Makes a new ExtXProgramDateTime
tag.
Example
let program_date_time = ExtXProgramDateTime::new("2010-02-19T14:54:23.031+08:00");
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExtXProgramDateTime<'a>
impl<'a> Send for ExtXProgramDateTime<'a>
impl<'a> Sync for ExtXProgramDateTime<'a>
impl<'a> Unpin for ExtXProgramDateTime<'a>
impl<'a> UnwindSafe for ExtXProgramDateTime<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more