pub struct VideoSnippet {
pub category_id: Option<String>,
pub channel_id: Option<String>,
pub channel_title: Option<String>,
pub default_audio_language: Option<String>,
pub default_language: Option<String>,
pub description: Option<String>,
pub live_broadcast_content: Option<String>,
pub localized: Option<VideoLocalization>,
pub published_at: Option<DateTime<Utc>>,
pub tags: Option<Vec<String>>,
pub thumbnails: Option<ThumbnailDetails>,
pub title: Option<String>,
}
Expand description
Basic details about a video, including title, description, uploader, thumbnails and category.
This type is not used in any activity, and only used as part of another schema.
Fields§
§category_id: Option<String>
The YouTube video category associated with the video.
channel_id: Option<String>
The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
channel_title: Option<String>
Channel title for the channel that the video belongs to.
default_audio_language: Option<String>
The default_audio_language property specifies the language spoken in the video’s default audio track.
default_language: Option<String>
The language of the videos’s default snippet.
description: Option<String>
The video’s description. @mutable youtube.videos.insert youtube.videos.update
live_broadcast_content: Option<String>
Indicates if the video is an upcoming/active live broadcast. Or it’s “none” if the video is not an upcoming/active live broadcast.
localized: Option<VideoLocalization>
Localized snippet selected with the hl parameter. If no such localization exists, this field is populated with the default snippet. (Read-only)
published_at: Option<DateTime<Utc>>
The date and time when the video was uploaded.
A list of keyword tags associated with the video. Tags may contain spaces.
thumbnails: Option<ThumbnailDetails>
A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
title: Option<String>
The video’s title. @mutable youtube.videos.insert youtube.videos.update
Trait Implementations§
Source§impl Clone for VideoSnippet
impl Clone for VideoSnippet
Source§fn clone(&self) -> VideoSnippet
fn clone(&self) -> VideoSnippet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VideoSnippet
impl Debug for VideoSnippet
Source§impl Default for VideoSnippet
impl Default for VideoSnippet
Source§fn default() -> VideoSnippet
fn default() -> VideoSnippet
Source§impl<'de> Deserialize<'de> for VideoSnippet
impl<'de> Deserialize<'de> for VideoSnippet
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>,
Source§impl Serialize for VideoSnippet
impl Serialize for VideoSnippet
impl Part for VideoSnippet
Auto Trait Implementations§
impl Freeze for VideoSnippet
impl RefUnwindSafe for VideoSnippet
impl Send for VideoSnippet
impl Sync for VideoSnippet
impl Unpin for VideoSnippet
impl UnwindSafe for VideoSnippet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more