Struct wasm_oidc_plugin::cookie::AuthorizationState
source · pub struct AuthorizationState {
pub access_token: String,
pub token_type: String,
pub expires_in: u32,
pub refresh_token: Option<String>,
pub id_token: String,
}
Expand description
Struct parse the cookie from the request into a struct in order to access the fields and also to save the cookie on the client side
Fields§
§access_token: String
Access token to be used for requests to the API
token_type: String
Type of the access token
expires_in: u32
Time in seconds until the access token expires
refresh_token: Option<String>
Refresh token to be used to refresh the access token
id_token: String
ID token in JWT format
Trait Implementations§
source§impl Clone for AuthorizationState
impl Clone for AuthorizationState
source§fn clone(&self) -> AuthorizationState
fn clone(&self) -> AuthorizationState
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 AuthorizationState
impl Debug for AuthorizationState
source§impl<'de> Deserialize<'de> for AuthorizationState
impl<'de> Deserialize<'de> for AuthorizationState
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 AuthorizationState
impl RefUnwindSafe for AuthorizationState
impl Send for AuthorizationState
impl Sync for AuthorizationState
impl Unpin for AuthorizationState
impl UnwindSafe for AuthorizationState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)