Enum mpris_server::PlaylistOrdering
source · pub enum PlaylistOrdering {
Alphabetical,
CreationDate,
ModifiedDate,
LastPlayDate,
UserDefined,
}
Expand description
Specifies the ordering of returned playlists.
Rationale
Some media players may allow users to order playlists as they wish. This ordering allows playlists to be retrieved in that order.
Variants§
Alphabetical
Alphabetical ordering by name, ascending.
CreationDate
Ordering by creation date, oldest first.
ModifiedDate
Ordering by last modified date, oldest first.
LastPlayDate
Ordering by date of last playback, oldest first.
UserDefined
A user-defined ordering.
Implementations§
Trait Implementations§
source§impl Clone for PlaylistOrdering
impl Clone for PlaylistOrdering
source§fn clone(&self) -> PlaylistOrdering
fn clone(&self) -> PlaylistOrdering
Returns a copy 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 PlaylistOrdering
impl Debug for PlaylistOrdering
source§impl<'de> Deserialize<'de> for PlaylistOrdering
impl<'de> Deserialize<'de> for PlaylistOrdering
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
source§impl Display for PlaylistOrdering
impl Display for PlaylistOrdering
source§impl<'a> From<PlaylistOrdering> for Value<'a>
impl<'a> From<PlaylistOrdering> for Value<'a>
source§fn from(status: PlaylistOrdering) -> Self
fn from(status: PlaylistOrdering) -> Self
Converts to this type from the input type.
source§impl PartialEq for PlaylistOrdering
impl PartialEq for PlaylistOrdering
source§impl Type for PlaylistOrdering
impl Type for PlaylistOrdering
impl Copy for PlaylistOrdering
impl Eq for PlaylistOrdering
impl StructuralPartialEq for PlaylistOrdering
Auto Trait Implementations§
impl Freeze for PlaylistOrdering
impl RefUnwindSafe for PlaylistOrdering
impl Send for PlaylistOrdering
impl Sync for PlaylistOrdering
impl Unpin for PlaylistOrdering
impl UnwindSafe for PlaylistOrdering
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more