pub struct AccessToken {
pub access_token_id: Uuid,
pub client_secret: String,
pub encryption_key: SymmetricCryptoKey,
}Expand description
Access Token
Fields§
§access_token_id: UuidThe ID of the access token
client_secret: StringThe client secret
encryption_key: SymmetricCryptoKeyThe encryption key used to decrypt a payload to retrieve the organization key.
Trait Implementations§
Source§impl Debug for AccessToken
impl Debug for AccessToken
Source§impl FromStr for AccessToken
impl FromStr for AccessToken
Source§type Err = AccessTokenInvalidError
type Err = AccessTokenInvalidError
The associated error which can be returned from parsing.
Source§fn from_str(key: &str) -> Result<AccessToken, <AccessToken as FromStr>::Err>
fn from_str(key: &str) -> Result<AccessToken, <AccessToken as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreAuto Trait Implementations§
impl Freeze for AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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