Struct hls_m3u8::tags::ExtXProgramDateTime
source · #[non_exhaustive]pub struct ExtXProgramDateTime<'a> {
pub date_time: Cow<'a, str>,
/* private fields */
}
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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§
source§impl<'a> ExtXProgramDateTime<'a>
impl<'a> ExtXProgramDateTime<'a>
sourcepub fn new<T: Into<Cow<'a, str>>>(date_time: T) -> Self
pub fn new<T: Into<Cow<'a, str>>>(date_time: T) -> Self
Makes a new ExtXProgramDateTime
tag.
§Example
let program_date_time = ExtXProgramDateTime::new("2010-02-19T14:54:23.031+08:00");
sourcepub fn into_owned(self) -> ExtXProgramDateTime<'static>
pub fn into_owned(self) -> ExtXProgramDateTime<'static>
Trait Implementations§
source§impl<'a> Clone for ExtXProgramDateTime<'a>
impl<'a> Clone for ExtXProgramDateTime<'a>
source§fn clone(&self) -> ExtXProgramDateTime<'a>
fn clone(&self) -> ExtXProgramDateTime<'a>
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<'a> Debug for ExtXProgramDateTime<'a>
impl<'a> Debug for ExtXProgramDateTime<'a>
source§impl<'a> Display for ExtXProgramDateTime<'a>
impl<'a> Display for ExtXProgramDateTime<'a>
source§impl<'a> Hash for ExtXProgramDateTime<'a>
impl<'a> Hash for ExtXProgramDateTime<'a>
source§impl<'a> Ord for ExtXProgramDateTime<'a>
impl<'a> Ord for ExtXProgramDateTime<'a>
source§fn cmp(&self, other: &ExtXProgramDateTime<'a>) -> Ordering
fn cmp(&self, other: &ExtXProgramDateTime<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for ExtXProgramDateTime<'a>
impl<'a> PartialEq for ExtXProgramDateTime<'a>
source§impl<'a> PartialOrd for ExtXProgramDateTime<'a>
impl<'a> PartialOrd for ExtXProgramDateTime<'a>
source§impl<'a> TryFrom<&'a str> for ExtXProgramDateTime<'a>
impl<'a> TryFrom<&'a str> for ExtXProgramDateTime<'a>
impl<'a> Eq for ExtXProgramDateTime<'a>
impl<'a> StructuralPartialEq for ExtXProgramDateTime<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtXProgramDateTime<'a>
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§
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
)