pub struct MusicServer {
pub name: String,
pub url: String,
pub service: MusicService,
pub access_token: Option<String>,
pub user_id: Option<String>,
pub id: Option<String>,
pub yt_browser: Option<Browser>,
pub yt_anonymous: bool,
}Fields§
§name: String§url: String§service: MusicService§access_token: Option<String>§user_id: Option<String>§id: Option<String>§yt_browser: Option<Browser>For browser sign-in services: which Chromium-family browser was used.
yt_anonymous: boolFor MusicService::YtMusic only: anonymous mode.
Implementations§
Source§impl MusicServer
impl MusicServer
pub fn new(name: String, url: String) -> Self
pub fn new_with_service( name: String, url: String, service: MusicService, ) -> Self
pub fn yt_browser(&self) -> Option<Browser>
Source§impl MusicServer
impl MusicServer
pub fn auth(&self) -> ServerAuth
Trait Implementations§
Source§impl Clone for MusicServer
impl Clone for MusicServer
Source§fn clone(&self) -> MusicServer
fn clone(&self) -> MusicServer
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 moreSource§impl Debug for MusicServer
impl Debug for MusicServer
Source§impl Default for MusicServer
impl Default for MusicServer
Source§impl<'de> Deserialize<'de> for MusicServer
impl<'de> Deserialize<'de> for MusicServer
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 PartialEq for MusicServer
impl PartialEq for MusicServer
Source§fn eq(&self, other: &MusicServer) -> bool
fn eq(&self, other: &MusicServer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MusicServer
impl Serialize for MusicServer
impl StructuralPartialEq for MusicServer
Auto Trait Implementations§
impl Freeze for MusicServer
impl RefUnwindSafe for MusicServer
impl Send for MusicServer
impl Sync for MusicServer
impl Unpin for MusicServer
impl UnsafeUnpin for MusicServer
impl UnwindSafe for MusicServer
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