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
base_track: Option<Track>
The primary media track for this MediaFile
. This is used as the "time
base" for all Alignment
s. This may be omitted if no timed media is
available, as would be in the case of two texts aligned against each
other.
tracks: Vec<Track>
Optional other tracks associated with this file.
alignments: Vec<Alignment>
A list of synchronized sentences, subtitles, or other linguistic content.
ext: ExtensionData
Application-specific extension data.
Methods
impl Metadata
[src]
fn from_bytes(data: &[u8]) -> Result<Metadata, Error>
[src]
Parse metadata.json
represented as raw bytes. This will be interpreted
as UTF-8, because the format is strict.
fn from_str(data: &str) -> Result<Metadata, Error>
[src]
Parse metadata.json
represented as a UTF-8 Rust string.
Trait Implementations
impl Clone for Metadata
[src]
fn clone(&self) -> Metadata
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more