Struct m3u8_rs::MediaSegment
source · pub struct MediaSegment {
pub uri: String,
pub duration: f32,
pub title: Option<String>,
pub byte_range: Option<ByteRange>,
pub discontinuity: bool,
pub key: Option<Key>,
pub map: Option<Map>,
pub program_date_time: Option<DateTime<FixedOffset>>,
pub daterange: Option<DateRange>,
pub unknown_tags: Vec<ExtTag>,
}
Expand description
A Media Segment is specified by a URI and optionally a byte range.
Fields§
§uri: String
§duration: f32
#EXTINF:<duration>,[<title>]
title: Option<String>
#EXTINF:<duration>,[<title>]
byte_range: Option<ByteRange>
#EXT-X-BYTERANGE:<n>[@<o>]
discontinuity: bool
#EXT-X-DISCONTINUITY
key: Option<Key>
#EXT-X-KEY:<attribute-list>
map: Option<Map>
#EXT-X-MAP:<attribute-list>
program_date_time: Option<DateTime<FixedOffset>>
#EXT-X-PROGRAM-DATE-TIME:<YYYY-MM-DDThh:mm:ssZ>
daterange: Option<DateRange>
#EXT-X-DATERANGE:<attribute-list>
#EXT-
Implementations§
source§impl MediaSegment
impl MediaSegment
pub fn empty() -> MediaSegment
Trait Implementations§
source§impl Clone for MediaSegment
impl Clone for MediaSegment
source§fn clone(&self) -> MediaSegment
fn clone(&self) -> MediaSegment
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 Debug for MediaSegment
impl Debug for MediaSegment
source§impl Default for MediaSegment
impl Default for MediaSegment
source§fn default() -> MediaSegment
fn default() -> MediaSegment
Returns the “default value” for a type. Read more