Struct aligned_media::Track [] [src]

pub struct Track {
    pub track_type: TrackType,
    pub lang: Option<Language>,
    pub html: Option<String>,
    pub ext: ExtensionData,
    // some fields omitted
}

An individual "track" of context. This might be a single subtitle in a single language, or a still image taken from a video

Fields

The language stored in this track, represented as a two-letter ISO 639-1 code when possible, and a three-letter 639-3 code for languages not included in ISO 639-1. If this is omitted, then programs may assume that this track might be something like a still image from a video or an illustration, that provides context but contains no linguistic data.

Textual context, which should be valid HTML 5, optionally with embedded tags like <b>, <i> and <br>.

Application-specific extension data.

Methods

impl Track
[src]

[src]

Create a new track with the specified type. This is pretty much useless unless you also set some additional fields manually.

[src]

Create a new HTML track with specified language and content.

Trait Implementations

impl Clone for Track
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Track
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Track
[src]

[src]

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

[src]

This method tests for !=.