pub struct Track {
Show 19 fields pub number: u64, pub uid: u64, pub tracktype: Tracktype, pub enabled: bool, pub default: bool, pub forced: bool, pub hearing_impaired: Option<bool>, pub visual_impaired: Option<bool>, pub text_descriptions: Option<bool>, pub original: Option<bool>, pub commentary: Option<bool>, pub interlaced: bool, pub default_duration: Option<Duration>, pub name: Option<String>, pub language: Option<Language>, pub codec_id: String, pub codec_private: Option<Vec<u8>>, pub codec_name: Option<String>, pub settings: Settings,
}
Expand description

A TrackEntry segment in the Tracks segment container

Fields

number: u64

The track number, starting from 1

uid: u64

The track’s UID

tracktype: Tracktype

The track’s type

enabled: bool

If the track is usable

default: bool

If the track should be active if no other preferences found

forced: bool

If the track must be active during playback

hearing_impaired: Option<bool>

If the track is suitable for users with hearing impairments

visual_impaired: Option<bool>

If the track is suitable for users with visual impairments

text_descriptions: Option<bool>

If the track contains textual descriptions of video content

original: Option<bool>

If the track is in the content’s original language

commentary: Option<bool>

If the track contains commentary

interlaced: bool

If the track contains blocks using lacing

default_duration: Option<Duration>

Duration of each frame

name: Option<String>

A human-readable track name

language: Option<Language>

The track’s language

codec_id: String

The track’s codec’s ID

codec_private: Option<Vec<u8>>

Private data known only to the codec

codec_name: Option<String>

The track’s codec’s human-readable name

settings: Settings

The track’s audio or video settings

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.