Struct mpris_server::MaybePlaylist
source · pub struct MaybePlaylist {
pub valid: bool,
pub playlist: Playlist,
}Fields§
§valid: bool§playlist: PlaylistImplementations§
source§impl MaybePlaylist
impl MaybePlaylist
pub fn as_playlist(&self) -> Option<&Playlist>
pub fn into_playlist(self) -> Option<Playlist>
Trait Implementations§
source§impl Clone for MaybePlaylist
impl Clone for MaybePlaylist
source§fn clone(&self) -> MaybePlaylist
fn clone(&self) -> MaybePlaylist
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 MaybePlaylist
impl Debug for MaybePlaylist
source§impl<'a> From<MaybePlaylist> for Value<'a>
impl<'a> From<MaybePlaylist> for Value<'a>
source§fn from(mp: MaybePlaylist) -> Self
fn from(mp: MaybePlaylist) -> Self
Converts to this type from the input type.
source§impl PartialEq<MaybePlaylist> for MaybePlaylist
impl PartialEq<MaybePlaylist> for MaybePlaylist
source§fn eq(&self, other: &MaybePlaylist) -> bool
fn eq(&self, other: &MaybePlaylist) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MaybePlaylist
impl Serialize for MaybePlaylist
source§impl Type for MaybePlaylist
impl Type for MaybePlaylist
impl Eq for MaybePlaylist
impl StructuralEq for MaybePlaylist
impl StructuralPartialEq for MaybePlaylist
Auto Trait Implementations§
impl RefUnwindSafe for MaybePlaylist
impl Send for MaybePlaylist
impl Sync for MaybePlaylist
impl Unpin for MaybePlaylist
impl UnwindSafe for MaybePlaylist
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
§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