pub enum LibraryAction {
Show 13 variants
Rescan,
Update,
Analyze,
Recluster,
CreatePlaylist(String),
RemovePlaylist(RecordId),
RenamePlaylist(RecordId, String),
RemoveSongsFromPlaylist(RecordId, Vec<RecordId>),
AddThingsToPlaylist(RecordId, Vec<RecordId>),
CreatePlaylistAndAddThings(String, Vec<RecordId>),
CreateDynamicPlaylist(String, Query),
RemoveDynamicPlaylist(RecordId),
UpdateDynamicPlaylist(RecordId, DynamicPlaylistChangeSet),
}Variants§
Rescan
Rescan the library
Update
Tell the Library Store to get the latest library data
Analyze
Analyze the library
Recluster
Recluster the collection
CreatePlaylist(String)
Create a new playlist with the given name
RemovePlaylist(RecordId)
Delete a playlist by id
RenamePlaylist(RecordId, String)
Rename a playlist by id
RemoveSongsFromPlaylist(RecordId, Vec<RecordId>)
Remove a song from a playlist (PlaylistId, Vec<SongId>)
AddThingsToPlaylist(RecordId, Vec<RecordId>)
Add a list of things to a playlist (PlaylistId, Vec<SongId>)
CreatePlaylistAndAddThings(String, Vec<RecordId>)
Create a new playlist with the given name (if it doesn’t exist) and add the songs to it
(PlaylistName, Vec<SongId>)
CreateDynamicPlaylist(String, Query)
Create a new dynamic playlist with the given name and query
RemoveDynamicPlaylist(RecordId)
Delete a dynamic playlist by id
UpdateDynamicPlaylist(RecordId, DynamicPlaylistChangeSet)
Update the query of a dynamic playlist
Trait Implementations§
Source§impl Clone for LibraryAction
impl Clone for LibraryAction
Source§fn clone(&self) -> LibraryAction
fn clone(&self) -> LibraryAction
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 Debug for LibraryAction
impl Debug for LibraryAction
Source§impl PartialEq for LibraryAction
impl PartialEq for LibraryAction
impl Eq for LibraryAction
impl StructuralPartialEq for LibraryAction
Auto Trait Implementations§
impl Freeze for LibraryAction
impl RefUnwindSafe for LibraryAction
impl Send for LibraryAction
impl Sync for LibraryAction
impl Unpin for LibraryAction
impl UnwindSafe for LibraryAction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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