pub struct CreatePlaylistQuery<'a, C: CreatePlaylistType> { /* private fields */ }Expand description
A playlist can be created using a list of video ids, or as a copy of an existing playlist (but not both at the same time).
Implementations§
Source§impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
pub fn new( title: &'a str, description: Option<&'a str>, privacy_status: PrivacyStatus, ) -> CreatePlaylistQuery<'a, BasicCreatePlaylist>
Source§impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
pub fn with_source<T: Into<PlaylistID<'a>>>( self, source_playlist: T, ) -> CreatePlaylistQuery<'a, CreatePlaylistFromPlaylist<'a>>
Source§impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
impl<'a> CreatePlaylistQuery<'a, BasicCreatePlaylist>
pub fn with_video_ids( self, video_ids: impl IntoIterator<Item = VideoID<'a>>, ) -> CreatePlaylistQuery<'a, CreatePlaylistFromVideos<'a>>
Trait Implementations§
Source§impl<'a, C: Clone + CreatePlaylistType> Clone for CreatePlaylistQuery<'a, C>
impl<'a, C: Clone + CreatePlaylistType> Clone for CreatePlaylistQuery<'a, C>
Source§fn clone(&self) -> CreatePlaylistQuery<'a, C>
fn clone(&self) -> CreatePlaylistQuery<'a, C>
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<'a, C: Debug + CreatePlaylistType> Debug for CreatePlaylistQuery<'a, C>
impl<'a, C: Debug + CreatePlaylistType> Debug for CreatePlaylistQuery<'a, C>
Source§impl<'a, C: CreatePlaylistType> ParseFrom<CreatePlaylistQuery<'a, C>> for PlaylistID<'static>
impl<'a, C: CreatePlaylistType> ParseFrom<CreatePlaylistQuery<'a, C>> for PlaylistID<'static>
fn parse_from( p: ProcessedResult<'_, CreatePlaylistQuery<'a, C>>, ) -> Result<Self>
Source§impl<'a, C: PartialEq + CreatePlaylistType> PartialEq for CreatePlaylistQuery<'a, C>
impl<'a, C: PartialEq + CreatePlaylistType> PartialEq for CreatePlaylistQuery<'a, C>
Source§impl<C: CreatePlaylistType> PostQuery for CreatePlaylistQuery<'_, C>
impl<C: CreatePlaylistType> PostQuery for CreatePlaylistQuery<'_, C>
Source§impl<A: AuthToken, C: CreatePlaylistType> Query<A> for CreatePlaylistQuery<'_, C>
impl<A: AuthToken, C: CreatePlaylistType> Query<A> for CreatePlaylistQuery<'_, C>
type Output = PlaylistID<'static>
type Method = PostMethod
impl<'a, C: CreatePlaylistType> StructuralPartialEq for CreatePlaylistQuery<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for CreatePlaylistQuery<'a, C>where
C: Freeze,
impl<'a, C> RefUnwindSafe for CreatePlaylistQuery<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for CreatePlaylistQuery<'a, C>where
C: Send,
impl<'a, C> Sync for CreatePlaylistQuery<'a, C>where
C: Sync,
impl<'a, C> Unpin for CreatePlaylistQuery<'a, C>where
C: Unpin,
impl<'a, C> UnwindSafe for CreatePlaylistQuery<'a, C>where
C: UnwindSafe,
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,
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>
Converts
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>
Converts
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