[][src]Struct hls_m3u8::tags::ExtXProgramDateTime

#[non_exhaustive]pub struct ExtXProgramDateTime {
    pub date_time: String,
}

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)

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: String

The date-time of the first sample of the associated media segment.

Methods

impl ExtXProgramDateTime[src]

pub fn new<T: Into<String>>(date_time: T) -> Self[src]

Makes a new ExtXProgramDateTime tag.

Example

let program_date_time = ExtXProgramDateTime::new("2010-02-19T14:54:23.031+08:00");

Trait Implementations

impl Clone for ExtXProgramDateTime[src]

impl Debug for ExtXProgramDateTime[src]

impl Display for ExtXProgramDateTime[src]

impl Eq for ExtXProgramDateTime[src]

impl FromStr for ExtXProgramDateTime[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for ExtXProgramDateTime[src]

impl Ord for ExtXProgramDateTime[src]

impl PartialEq<ExtXProgramDateTime> for ExtXProgramDateTime[src]

impl PartialOrd<ExtXProgramDateTime> for ExtXProgramDateTime[src]

impl StructuralEq for ExtXProgramDateTime[src]

impl StructuralPartialEq for ExtXProgramDateTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.