Struct letterboxd::AccessToken
source · pub struct AccessToken {
pub access_token: String,
pub token_type: String,
pub refresh_token: String,
pub expires_in: usize,
}
Fields§
§access_token: String
The access token that grants the member access. Combine this with the token_type to form the Authorization header.
token_type: String
The type of the access token. Use value: bearer
refresh_token: String
The refresh token is used to obtain a new access token, after the access token expires, without needing to prompt the member for their credentials again. The refresh token only expires if it is explicitly invalidated by Letterboxd, in which case the member should be prompted for their credentials (or stored credentials used).
expires_in: usize
The number of seconds before the access token expires.
Trait Implementations§
source§impl Clone for AccessToken
impl Clone for AccessToken
source§fn clone(&self) -> AccessToken
fn clone(&self) -> AccessToken
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 AccessToken
impl Debug for AccessToken
source§impl Default for AccessToken
impl Default for AccessToken
source§fn default() -> AccessToken
fn default() -> AccessToken
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccessToken
impl<'de> Deserialize<'de> for AccessToken
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 AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnwindSafe for AccessToken
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