pub enum MusicService {
Jellyfin,
Subsonic,
Custom,
YtMusic,
SoundCloud,
}Variants§
Implementations§
Source§impl MusicService
impl MusicService
pub fn display_name(&self) -> &'static str
Sourcepub fn uses_browser_signin(&self) -> bool
pub fn uses_browser_signin(&self) -> bool
Backends that authenticate via a browser sign-in window (OAuth/cookies) rather than a URL + username/password form.
Trait Implementations§
Source§impl Clone for MusicService
impl Clone for MusicService
Source§fn clone(&self) -> MusicService
fn clone(&self) -> MusicService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MusicService
Source§impl Debug for MusicService
impl Debug for MusicService
Source§impl Default for MusicService
impl Default for MusicService
Source§fn default() -> MusicService
fn default() -> MusicService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MusicService
impl<'de> Deserialize<'de> for MusicService
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 MusicService
Source§impl Hash for MusicService
impl Hash for MusicService
Source§impl PartialEq for MusicService
impl PartialEq for MusicService
Source§fn eq(&self, other: &MusicService) -> bool
fn eq(&self, other: &MusicService) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MusicService
impl Serialize for MusicService
impl StructuralPartialEq for MusicService
Auto Trait Implementations§
impl Freeze for MusicService
impl RefUnwindSafe for MusicService
impl Send for MusicService
impl Sync for MusicService
impl Unpin for MusicService
impl UnsafeUnpin for MusicService
impl UnwindSafe for MusicService
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