pub struct EditPlaylistQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> EditPlaylistQuery<'a>
impl<'a> EditPlaylistQuery<'a>
pub fn new_title<T: Into<PlaylistID<'a>>, S: Into<Cow<'a, str>>>( id: T, new_title: S, ) -> Self
pub fn new_description<T: Into<PlaylistID<'a>>, S: Into<Cow<'a, str>>>( id: T, new_description: S, ) -> Self
pub fn new_privacy_status<T: Into<PlaylistID<'a>>>( id: T, new_privacy_status: PrivacyStatus, ) -> Self
pub fn swap_videos_order<T: Into<PlaylistID<'a>>>( id: T, video_1: SetVideoID<'a>, video_2: SetVideoID<'a>, ) -> Self
pub fn change_add_order<T: Into<PlaylistID<'a>>>( id: T, change_add_order: AddOrder, ) -> Self
pub fn add_playlist<T: Into<PlaylistID<'a>>>( id: T, add_playlist: PlaylistID<'a>, ) -> Self
pub fn with_new_description<S: Into<Cow<'a, str>>>( self, new_description: S, ) -> Self
pub fn with_new_privacy_status(self, new_privacy_status: PrivacyStatus) -> Self
pub fn with_change_add_order(self, change_add_order: AddOrder) -> Self
pub fn with_add_playlist(self, add_playlist: PlaylistID<'a>) -> Self
pub fn with_swap_videos_order( self, first_video: SetVideoID<'a>, second_video: SetVideoID<'a>, ) -> Self
Trait Implementations§
Source§impl<'a> ParseFrom<EditPlaylistQuery<'a>> for ApiOutcome
impl<'a> ParseFrom<EditPlaylistQuery<'a>> for ApiOutcome
fn parse_from(p: ProcessedResult<'_, EditPlaylistQuery<'a>>) -> Result<Self>
Source§impl PostQuery for EditPlaylistQuery<'_>
impl PostQuery for EditPlaylistQuery<'_>
Source§impl<A: AuthToken> Query<A> for EditPlaylistQuery<'_>
impl<A: AuthToken> Query<A> for EditPlaylistQuery<'_>
type Output = ApiOutcome
type Method = PostMethod
Auto Trait Implementations§
impl<'a> Freeze for EditPlaylistQuery<'a>
impl<'a> RefUnwindSafe for EditPlaylistQuery<'a>
impl<'a> Send for EditPlaylistQuery<'a>
impl<'a> Sync for EditPlaylistQuery<'a>
impl<'a> Unpin for EditPlaylistQuery<'a>
impl<'a> UnwindSafe for EditPlaylistQuery<'a>
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> 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