pub struct SpotifyTokenResponse {
pub access_token: String,
pub token_type: String,
pub scope: String,
pub expires_in: u64,
pub refresh_token: Option<String>,
}Expand description
Raw token response from Spotify’s token endpoint.
Fields§
§access_token: String§token_type: String§scope: String§expires_in: u64Seconds until token expires.
refresh_token: Option<String>Trait Implementations§
Source§impl Debug for SpotifyTokenResponse
impl Debug for SpotifyTokenResponse
Source§impl<'de> Deserialize<'de> for SpotifyTokenResponse
impl<'de> Deserialize<'de> for SpotifyTokenResponse
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
Auto Trait Implementations§
impl Freeze for SpotifyTokenResponse
impl RefUnwindSafe for SpotifyTokenResponse
impl Send for SpotifyTokenResponse
impl Sync for SpotifyTokenResponse
impl Unpin for SpotifyTokenResponse
impl UnwindSafe for SpotifyTokenResponse
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