pub struct AlternativeMedia {
Show 13 fields pub media_type: AlternativeMediaType, pub uri: Option<String>, pub group_id: String, pub language: Option<String>, pub assoc_language: Option<String>, pub name: String, pub default: bool, pub autoselect: bool, pub forced: bool, pub instream_id: Option<InstreamId>, pub characteristics: Option<String>, pub channels: Option<String>, pub other_attributes: Option<HashMap<String, QuotedOrUnquoted>>,
}
Expand description

#EXT-X-MEDIA:<attribute-list>

The EXT-X-MEDIA tag is used to relate Media Playlists that contain alternative Renditions (Section 4.3.4.2.1) of the same content. For example, three EXT-X-MEDIA tags can be used to identify audio-only Media Playlists that contain English, French and Spanish Renditions of the same presentation. Or two EXT-X-MEDIA tags can be used to identify video-only Media Playlists that show two different camera angles.

Fields

media_type: AlternativeMediaTypeuri: Option<String>group_id: Stringlanguage: Option<String>assoc_language: Option<String>name: Stringdefault: boolautoselect: boolforced: boolinstream_id: Option<InstreamId>characteristics: Option<String>channels: Option<String>other_attributes: Option<HashMap<String, QuotedOrUnquoted>>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.