pub struct VideoInfos {
pub video_details: VideoDetails,
pub microformat: MicroformatData,
pub streaming_data: StreamingData,
pub transcript_list: TranscriptList,
}
Expand description
§VideoInfos
Comprehensive container for all available information about a YouTube video.
This struct combines metadata from different extractors into a single structure, providing a complete view of a video’s details, streaming options, and available transcripts.
The advantage of using this struct is that it retrieves all information in a single request to YouTube, rather than making multiple separate requests.
Fields§
§video_details: VideoDetails
Basic details about the video (title, author, view count, etc.)
microformat: MicroformatData
Extended metadata from the microformat section (categories, countries, embed info)
streaming_data: StreamingData
Information about available streaming formats (qualities, codecs, URLs)
transcript_list: TranscriptList
List of available transcripts/captions for the video
Trait Implementations§
Source§impl Clone for VideoInfos
impl Clone for VideoInfos
Source§fn clone(&self) -> VideoInfos
fn clone(&self) -> VideoInfos
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoInfos
impl Debug for VideoInfos
Source§impl<'de> Deserialize<'de> for VideoInfos
impl<'de> Deserialize<'de> for VideoInfos
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 VideoInfos
impl RefUnwindSafe for VideoInfos
impl Send for VideoInfos
impl Sync for VideoInfos
impl Unpin for VideoInfos
impl UnwindSafe for VideoInfos
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