Struct aligned_media::Metadata [] [src]

pub struct Metadata {
    pub base_track: Option<Track>,
    pub tracks: Vec<Track>,
    pub alignments: Vec<Alignment>,
    pub ext: ExtensionData,
    // some fields omitted
}

A single media file, typically an episode of a TV series, a film, an chapter of an audiobook. It might also be something more exotic, like a PDF of a graphic novel.

Fields

The primary media track for this MediaFile. This is used as the "time base" for all Alignments. This may be omitted if no timed media is available, as would be in the case of two texts aligned against each other.

Optional other tracks associated with this file.

A list of synchronized sentences, subtitles, or other linguistic content.

Application-specific extension data.

Methods

impl Metadata
[src]

[src]

Parse metadata.json represented as raw bytes. This will be interpreted as UTF-8, because the format is strict.

[src]

Parse metadata.json represented as a UTF-8 Rust string.

Trait Implementations

impl Clone for Metadata
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Metadata
[src]

[src]

Formats the value using the given formatter.

impl Default for Metadata
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Metadata
[src]

[src]

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

[src]

This method tests for !=.