pub struct AuthCodeRecord {
pub code: String,
pub client_id: String,
pub account_id: String,
pub redirect_uri: String,
pub code_challenge: Option<String>,
pub issued_at: Instant,
pub requested_scope: Option<String>,
}Expand description
A single authorisation code issued during the /auth flow.
Fields§
§code: StringOpaque code (base16 random).
client_id: StringClient who requested the code.
account_id: StringAccount id that authenticated.
redirect_uri: StringRedirect URI passed at /auth time (must match at /token).
code_challenge: Option<String>PKCE code challenge (S256 only).
issued_at: InstantIssue time.
requested_scope: Option<String>PKCE required?
Trait Implementations§
Source§impl Clone for AuthCodeRecord
impl Clone for AuthCodeRecord
Source§fn clone(&self) -> AuthCodeRecord
fn clone(&self) -> AuthCodeRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthCodeRecord
impl RefUnwindSafe for AuthCodeRecord
impl Send for AuthCodeRecord
impl Sync for AuthCodeRecord
impl Unpin for AuthCodeRecord
impl UnsafeUnpin for AuthCodeRecord
impl UnwindSafe for AuthCodeRecord
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