pub struct UpstreamOAuthAuthorizationSession {
pub id: Ulid,
pub state: UpstreamOAuthAuthorizationSessionState,
pub provider_id: Ulid,
pub state_str: String,
pub code_challenge_verifier: Option<String>,
pub nonce: String,
pub created_at: DateTime<Utc>,
}
Fields§
§id: Ulid
§state: UpstreamOAuthAuthorizationSessionState
§provider_id: Ulid
§state_str: String
§code_challenge_verifier: Option<String>
§nonce: String
§created_at: DateTime<Utc>
Implementations§
source§impl UpstreamOAuthAuthorizationSession
impl UpstreamOAuthAuthorizationSession
Methods from Deref<Target = UpstreamOAuthAuthorizationSessionState>§
sourcepub fn link_id(&self) -> Option<Ulid>
pub fn link_id(&self) -> Option<Ulid>
Get the link ID for the upstream OAuth 2.0 authorization session.
Returns None
if the upstream OAuth 2.0 authorization session state is
Pending
.
sourcepub fn completed_at(&self) -> Option<DateTime<Utc>>
pub fn completed_at(&self) -> Option<DateTime<Utc>>
Get the time at which the upstream OAuth 2.0 authorization session was completed.
Returns None
if the upstream OAuth 2.0 authorization session state is
Pending
.
sourcepub fn id_token(&self) -> Option<&str>
pub fn id_token(&self) -> Option<&str>
Get the ID token for the upstream OAuth 2.0 authorization session.
Returns None
if the upstream OAuth 2.0 authorization session state is
Pending
.
sourcepub fn extra_callback_parameters(&self) -> Option<&Value>
pub fn extra_callback_parameters(&self) -> Option<&Value>
Get the extra query parameters that were sent to the upstream provider.
Returns None
if the upstream OAuth 2.0 authorization session state is
not Pending
.
sourcepub fn consumed_at(&self) -> Option<DateTime<Utc>>
pub fn consumed_at(&self) -> Option<DateTime<Utc>>
Get the time at which the upstream OAuth 2.0 authorization session was consumed.
Returns None
if the upstream OAuth 2.0 authorization session state is
not Consumed
.
sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true
if the upstream OAuth 2.0 authorization session state is
Pending
.
sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Returns true
if the upstream OAuth 2.0 authorization session state is
Completed
.
sourcepub fn is_consumed(&self) -> bool
pub fn is_consumed(&self) -> bool
Returns true
if the upstream OAuth 2.0 authorization session state is
Consumed
.
Trait Implementations§
source§impl Clone for UpstreamOAuthAuthorizationSession
impl Clone for UpstreamOAuthAuthorizationSession
source§fn clone(&self) -> UpstreamOAuthAuthorizationSession
fn clone(&self) -> UpstreamOAuthAuthorizationSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for UpstreamOAuthAuthorizationSession
impl PartialEq for UpstreamOAuthAuthorizationSession
source§fn eq(&self, other: &UpstreamOAuthAuthorizationSession) -> bool
fn eq(&self, other: &UpstreamOAuthAuthorizationSession) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for UpstreamOAuthAuthorizationSession
impl StructuralPartialEq for UpstreamOAuthAuthorizationSession
Auto Trait Implementations§
impl Freeze for UpstreamOAuthAuthorizationSession
impl RefUnwindSafe for UpstreamOAuthAuthorizationSession
impl Send for UpstreamOAuthAuthorizationSession
impl Sync for UpstreamOAuthAuthorizationSession
impl Unpin for UpstreamOAuthAuthorizationSession
impl UnwindSafe for UpstreamOAuthAuthorizationSession
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
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)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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>
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>
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