mp4

Trait Metadata

Source
pub trait Metadata<'a> {
    // Required methods
    fn title(&self) -> Option<Cow<'_, str>>;
    fn year(&self) -> Option<u32>;
    fn poster(&self) -> Option<&[u8]>;
    fn summary(&self) -> Option<Cow<'_, str>>;
}

Required Methods§

Source

fn title(&self) -> Option<Cow<'_, str>>

The video’s title

Source

fn year(&self) -> Option<u32>

The video’s release year

Source

fn poster(&self) -> Option<&[u8]>

The video’s poster (cover art)

Source

fn summary(&self) -> Option<Cow<'_, str>>

The video’s summary

Implementations on Foreign Types§

Source§

impl<'a, T: Metadata<'a>> Metadata<'a> for Option<T>

Source§

fn title(&self) -> Option<Cow<'_, str>>

Source§

fn year(&self) -> Option<u32>

Source§

fn poster(&self) -> Option<&[u8]>

Source§

fn summary(&self) -> Option<Cow<'_, str>>

Source§

impl<'a, T: Metadata<'a>> Metadata<'a> for &'a T

Source§

fn title(&self) -> Option<Cow<'_, str>>

Source§

fn year(&self) -> Option<u32>

Source§

fn poster(&self) -> Option<&[u8]>

Source§

fn summary(&self) -> Option<Cow<'_, str>>

Implementors§