pub struct VideoMetadata {
pub video_id: String,
pub title: String,
pub duration: Option<Duration>,
pub available_subtitles: Vec<SubtitleTrack>,
}
Expand description
Video metadata information
Fields§
§video_id: String
§title: String
§duration: Option<Duration>
§available_subtitles: Vec<SubtitleTrack>
Implementations§
Source§impl VideoMetadata
impl VideoMetadata
pub fn new(video_id: String, title: String) -> Self
pub fn with_duration(self, duration: Duration) -> Self
pub fn with_subtitles(self, subtitles: Vec<SubtitleTrack>) -> Self
Trait Implementations§
Source§impl Clone for VideoMetadata
impl Clone for VideoMetadata
Source§fn clone(&self) -> VideoMetadata
fn clone(&self) -> VideoMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoMetadata
impl Debug for VideoMetadata
Source§impl Default for VideoMetadata
impl Default for VideoMetadata
Source§fn default() -> VideoMetadata
fn default() -> VideoMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VideoMetadata
impl<'de> Deserialize<'de> for VideoMetadata
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
Auto Trait Implementations§
impl Freeze for VideoMetadata
impl RefUnwindSafe for VideoMetadata
impl Send for VideoMetadata
impl Sync for VideoMetadata
impl Unpin for VideoMetadata
impl UnwindSafe for VideoMetadata
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