pub struct TokenRecord {
pub access_token: Option<String>,
pub api_domain: Option<String>,
pub error: Option<String>,
pub expires_in_sec: Option<u64>,
pub expires_in: Option<u64>,
pub token_type: Option<String>,
}
Expand description
Wrapper around a token sent back from the Zoho service.
Unless you are saving and/or retrieving a token from somewhere other than Zoho (such as a database), you usually will not need to use this.
Fields§
§access_token: Option<String>
§api_domain: Option<String>
§error: Option<String>
§expires_in_sec: Option<u64>
§expires_in: Option<u64>
§token_type: Option<String>
Trait Implementations§
Source§impl Debug for TokenRecord
impl Debug for TokenRecord
Source§impl<'de> Deserialize<'de> for TokenRecord
impl<'de> Deserialize<'de> for TokenRecord
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 TokenRecord
impl RefUnwindSafe for TokenRecord
impl Send for TokenRecord
impl Sync for TokenRecord
impl Unpin for TokenRecord
impl UnwindSafe for TokenRecord
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more