pub struct MediaInfo {
pub source: String,
pub locator_id: String,
pub title: String,
pub author: Option<String>,
pub duration_ms: Option<u64>,
pub languages: Vec<LanguageInfo>,
}Expand description
Top-level metadata about a media item.
Fields§
§source: StringSource name that produced this metadata.
locator_id: StringSource-specific identifier.
title: StringTitle of the media item.
Author / channel / uploader.
duration_ms: Option<u64>Duration of the media item in milliseconds, if known.
languages: Vec<LanguageInfo>All caption tracks available on this media item.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaInfo
impl<'de> Deserialize<'de> for MediaInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MediaInfo
impl StructuralPartialEq for MediaInfo
Auto Trait Implementations§
impl Freeze for MediaInfo
impl RefUnwindSafe for MediaInfo
impl Send for MediaInfo
impl Sync for MediaInfo
impl Unpin for MediaInfo
impl UnsafeUnpin for MediaInfo
impl UnwindSafe for MediaInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.