pub enum PlaylistEdit {
Add {
id: MediaId,
before: Option<EntryId>,
},
Remove {
entry: EntryId,
},
Move {
entry: EntryId,
before: Option<EntryId>,
},
Unknown,
}Expand description
One change to a playlist’s entries (EditPlaylist).
Variants§
Add
Add id before entry before, or at the end when None (or when
that entry is gone by the time the edit is redone on a newer
revision). A movie, an episode or a track adds itself; a season its
episodes, a show every episode in airing order (specials last), an
album its tracks in disc and track order, an artist each album’s in
turn.
Remove
Take the entry out.
Move
Put the entry before before, or at the end when None (or when
that entry is gone by the time the edit is redone).
Unknown
An edit this build does not know; refused with InvalidInput.
Implementations§
Trait Implementations§
Source§impl Clone for PlaylistEdit
impl Clone for PlaylistEdit
Source§impl Debug for PlaylistEdit
impl Debug for PlaylistEdit
Source§impl<'de> Deserialize<'de> for PlaylistEdit
impl<'de> Deserialize<'de> for PlaylistEdit
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
impl Eq for PlaylistEdit
Source§impl PartialEq for PlaylistEdit
impl PartialEq for PlaylistEdit
Source§impl Serialize for PlaylistEdit
impl Serialize for PlaylistEdit
impl StructuralPartialEq for PlaylistEdit
Auto Trait Implementations§
impl Forget for PlaylistEdit
impl Freeze for PlaylistEdit
impl Move for PlaylistEdit
impl RefUnwindSafe for PlaylistEdit
impl Send for PlaylistEdit
impl Sync for PlaylistEdit
impl Unpin for PlaylistEdit
impl UnsafeUnpin for PlaylistEdit
impl UnwindSafe for PlaylistEdit
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