pub struct Credentials {
pub access_token: String,
pub expires_in: u64,
pub refresh_token: String,
pub refresh_token_expires_in: u64,
pub scope: String,
pub token_type: String,
}
Fields§
§access_token: String
§expires_in: u64
§refresh_token: String
§refresh_token_expires_in: u64
§scope: String
§token_type: String
Implementations§
Source§impl Credentials
impl Credentials
pub fn try_to_string(&self) -> Result<String, Error>
pub fn try_from_string(s: &str) -> Result<Self, Error>
Trait Implementations§
Source§impl Debug for Credentials
impl Debug for Credentials
Source§impl<'de> Deserialize<'de> for Credentials
impl<'de> Deserialize<'de> for Credentials
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 Credentials
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