pub struct NewOAuthState {
pub provider_id: String,
pub csrf_state: String,
pub pkce_verifier: String,
pub intent: OAuthIntent,
pub link_user_id: Option<i64>,
pub expires_at: OffsetDateTime,
}Expand description
Input for creating a new transient OAuth state.
Fields§
§provider_id: StringOAuth provider identifier (e.g., “google”, “github”).
csrf_state: StringCSRF state token.
pkce_verifier: StringPKCE verifier for the OAuth code exchange.
intent: OAuthIntentWhether this flow is a login or an explicit account link.
link_user_id: Option<i64>When intent is Link, the authenticated user’s ID to link the account to.
expires_at: OffsetDateTimeTimestamp when this state expires.
Trait Implementations§
Source§impl Clone for NewOAuthState
impl Clone for NewOAuthState
Source§fn clone(&self) -> NewOAuthState
fn clone(&self) -> NewOAuthState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for NewOAuthState
impl RefUnwindSafe for NewOAuthState
impl Send for NewOAuthState
impl Sync for NewOAuthState
impl Unpin for NewOAuthState
impl UnsafeUnpin for NewOAuthState
impl UnwindSafe for NewOAuthState
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§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