pub struct TidalCredentials {
pub token: String,
pub session_info: Option<SessionInfo>,
}Fields§
§token: String§session_info: Option<SessionInfo>Implementations§
Source§impl TidalCredentials
impl TidalCredentials
pub fn new(token: &str) -> Self
pub fn session_info(self, sesion_info: SessionInfo) -> Self
pub async fn create_session(self, username: &str, password: &str) -> Self
Trait Implementations§
Source§impl Clone for TidalCredentials
impl Clone for TidalCredentials
Source§fn clone(&self) -> TidalCredentials
fn clone(&self) -> TidalCredentials
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 moreAuto Trait Implementations§
impl Freeze for TidalCredentials
impl RefUnwindSafe for TidalCredentials
impl Send for TidalCredentials
impl Sync for TidalCredentials
impl Unpin for TidalCredentials
impl UnsafeUnpin for TidalCredentials
impl UnwindSafe for TidalCredentials
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