pub struct SpotifySecrets {
pub client_id: String,
pub refresh_token: String,
}Expand description
Spotify’s credential shape — OAuth 2.0 “Authorization Code with
PKCE” public client: just client_id + a long-lived refresh_token.
No client secret is issued or accepted by Spotify for PKCE clients.
Both pieces are persisted in the OS keychain; the access token is
re-minted at each CLI invocation.
Fields§
§client_id: String§refresh_token: StringAuto Trait Implementations§
impl Freeze for SpotifySecrets
impl RefUnwindSafe for SpotifySecrets
impl Send for SpotifySecrets
impl Sync for SpotifySecrets
impl Unpin for SpotifySecrets
impl UnsafeUnpin for SpotifySecrets
impl UnwindSafe for SpotifySecrets
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