pub struct DateRange {
pub id: String,
pub class: Option<String>,
pub start_date: DateTime<FixedOffset>,
pub end_date: Option<DateTime<FixedOffset>>,
pub duration: Option<f64>,
pub planned_duration: Option<f64>,
pub x_prefixed: Option<HashMap<String, QuotedOrUnquoted>>,
pub end_on_next: bool,
pub other_attributes: Option<HashMap<String, QuotedOrUnquoted>>,
}
Expand description
#EXT-X-DATERANGE:<attribute-list>
The EXT-X-DATERANGE tag associates a Date Range (i.e. a range of time defined by a starting and ending date) with a set of attribute / value pairs.
Fields§
§id: String
§class: Option<String>
§start_date: DateTime<FixedOffset>
§end_date: Option<DateTime<FixedOffset>>
§duration: Option<f64>
§planned_duration: Option<f64>
§x_prefixed: Option<HashMap<String, QuotedOrUnquoted>>
§end_on_next: bool
§other_attributes: Option<HashMap<String, QuotedOrUnquoted>>
Implementations§
Trait Implementations§
source§impl PartialEq for DateRange
impl PartialEq for DateRange
impl StructuralPartialEq for DateRange
Auto Trait Implementations§
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnwindSafe for DateRange
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