[−][src]Struct hls_m3u8::tags::ExtXProgramDateTime
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]
fn clone(&self) -> ExtXProgramDateTime
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Hash for ExtXProgramDateTime
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ExtXProgramDateTime
[src]
fn cmp(&self, other: &ExtXProgramDateTime) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ExtXProgramDateTime> for ExtXProgramDateTime
[src]
fn eq(&self, other: &ExtXProgramDateTime) -> bool
[src]
fn ne(&self, other: &ExtXProgramDateTime) -> bool
[src]
impl PartialOrd<ExtXProgramDateTime> for ExtXProgramDateTime
[src]
fn partial_cmp(&self, other: &ExtXProgramDateTime) -> Option<Ordering>
[src]
fn lt(&self, other: &ExtXProgramDateTime) -> bool
[src]
fn le(&self, other: &ExtXProgramDateTime) -> bool
[src]
fn gt(&self, other: &ExtXProgramDateTime) -> bool
[src]
fn ge(&self, other: &ExtXProgramDateTime) -> bool
[src]
impl StructuralEq for ExtXProgramDateTime
[src]
impl StructuralPartialEq for ExtXProgramDateTime
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtXProgramDateTime
impl Send for ExtXProgramDateTime
impl Sync for ExtXProgramDateTime
impl Unpin for ExtXProgramDateTime
impl UnwindSafe for ExtXProgramDateTime
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,