pub struct AuthState {
pub state: String,
pub nonce: String,
pub code_verifier: String,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub metadata: HashMap<String, String>,
}Expand description
Authentication state (for CSRF protection)
Fields§
§state: StringRandom state value
nonce: StringNonce for ID token validation
code_verifier: StringPKCE code verifier
created_at: DateTime<Utc>Creation timestamp
expires_at: DateTime<Utc>Expiration timestamp
metadata: HashMap<String, String>Additional metadata
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthState
impl<'de> Deserialize<'de> for AuthState
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 AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnwindSafe for AuthState
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