Struct rspotifys::Credentials
source · pub struct Credentials {
pub id: String,
pub secret: Option<String>,
}
Expand description
Simple client credentials object for Spotify.
Fields§
§id: String
§secret: Option<String>
PKCE doesn’t require a client secret
Implementations§
source§impl Credentials
impl Credentials
sourcepub fn new(id: &str, secret: &str) -> Self
pub fn new(id: &str, secret: &str) -> Self
Initialization with both the client ID and the client secret
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 Credentials
impl Debug for Credentials
source§impl Default for Credentials
impl Default for Credentials
source§fn default() -> Credentials
fn default() -> Credentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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