Struct spotify_rs::auth::AuthCodeGrantFlow
source · pub struct AuthCodeGrantFlow {
pub client_id: String,
pub client_secret: String,
}Expand description
The authorisation code flow is suitable for long-running applications (e.g. web and mobile apps) where the user grants permission only once.
If you’re using the authorisation code flow in any type of application where the client secret can’t be safely stored, then you should use the PKCE extension.
Fields§
§client_id: String§client_secret: StringTrait Implementations§
source§impl AuthFlow for AuthCodeGrantFlow
impl AuthFlow for AuthCodeGrantFlow
source§impl Clone for AuthCodeGrantFlow
impl Clone for AuthCodeGrantFlow
source§fn clone(&self) -> AuthCodeGrantFlow
fn clone(&self) -> AuthCodeGrantFlow
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 AuthCodeGrantFlow
impl Debug for AuthCodeGrantFlow
impl Authorised for AuthCodeGrantFlow
Auto Trait Implementations§
impl RefUnwindSafe for AuthCodeGrantFlow
impl Send for AuthCodeGrantFlow
impl Sync for AuthCodeGrantFlow
impl Unpin for AuthCodeGrantFlow
impl UnwindSafe for AuthCodeGrantFlow
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