pub struct PlaylistImageSnippet {
pub height: Option<i32>,
pub playlist_id: Option<String>,
pub type_: Option<String>,
pub width: Option<i32>,
}
Expand description
A playlistImage resource identifies another resource, such as a image, that is associated with a playlist. In addition, the playlistImage resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company’s videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistImages.list method to retrieve image data for any of those playlists. You can also add or remove images from those lists by calling the playlistImages.insert and playlistImages.delete methods.
This type is not used in any activity, and only used as part of another schema.
Fields§
§height: Option<i32>
The image height.
playlist_id: Option<String>
The Playlist ID of the playlist this image is associated with.
type_: Option<String>
The image type.
width: Option<i32>
The image width.
Trait Implementations§
Source§impl Clone for PlaylistImageSnippet
impl Clone for PlaylistImageSnippet
Source§fn clone(&self) -> PlaylistImageSnippet
fn clone(&self) -> PlaylistImageSnippet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PlaylistImageSnippet
impl Debug for PlaylistImageSnippet
Source§impl Default for PlaylistImageSnippet
impl Default for PlaylistImageSnippet
Source§fn default() -> PlaylistImageSnippet
fn default() -> PlaylistImageSnippet
Source§impl<'de> Deserialize<'de> for PlaylistImageSnippet
impl<'de> Deserialize<'de> for PlaylistImageSnippet
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 PlaylistImageSnippet
impl Serialize for PlaylistImageSnippet
impl Part for PlaylistImageSnippet
Auto Trait Implementations§
impl Freeze for PlaylistImageSnippet
impl RefUnwindSafe for PlaylistImageSnippet
impl Send for PlaylistImageSnippet
impl Sync for PlaylistImageSnippet
impl Unpin for PlaylistImageSnippet
impl UnwindSafe for PlaylistImageSnippet
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