pub struct OidcCallbackRequest {
pub state: OidcCallbackRequestState,
pub code: OidcCallbackRequestCode,
pub binding_verifier: OidcCallbackRequestBindingVerifier,
pub cohort_hash: Nullable<OidcCallbackRequestCohortHash>,
pub device_id: Nullable<OidcCallbackRequestDeviceId>,
}Expand description
The POST /v1/auth/oidc/callback body: what the provider’s redirect carried, plus the two
advisory identifiers a client may volunteer for the session this request opens.
Strict, like OidcAuthorizeRequest: a client that forwards the provider’s whole redirect
query — error, error_description, iss (RFC 9207) — gets a 422 naming the field rather
than a callback that quietly ignored what the provider said.
Fields§
§state: OidcCallbackRequestState§code: OidcCallbackRequestCode§binding_verifier: OidcCallbackRequestBindingVerifier§cohort_hash: Nullable<OidcCallbackRequestCohortHash>§device_id: Nullable<OidcCallbackRequestDeviceId>Implementations§
Source§impl OidcCallbackRequest
impl OidcCallbackRequest
Sourcepub fn with_cohort_hash(
self,
value: impl Into<Nullable<OidcCallbackRequestCohortHash>>,
) -> Self
pub fn with_cohort_hash( self, value: impl Into<Nullable<OidcCallbackRequestCohortHash>>, ) -> Self
Set the cohort_hash member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_cohort_hash_null(self) -> Self
pub fn with_cohort_hash_null(self) -> Self
Set the cohort_hash member to an explicit null.
Sourcepub fn with_device_id(
self,
value: impl Into<Nullable<OidcCallbackRequestDeviceId>>,
) -> Self
pub fn with_device_id( self, value: impl Into<Nullable<OidcCallbackRequestDeviceId>>, ) -> Self
Set the device_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_device_id_null(self) -> Self
pub fn with_device_id_null(self) -> Self
Set the device_id member to an explicit null.
Trait Implementations§
Source§impl Clone for OidcCallbackRequest
impl Clone for OidcCallbackRequest
Source§fn clone(&self) -> OidcCallbackRequest
fn clone(&self) -> OidcCallbackRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OidcCallbackRequest
impl Debug for OidcCallbackRequest
Source§impl<'de> Deserialize<'de> for OidcCallbackRequest
impl<'de> Deserialize<'de> for OidcCallbackRequest
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>,
Source§impl From<OidcCallbackRequestRequired> for OidcCallbackRequest
impl From<OidcCallbackRequestRequired> for OidcCallbackRequest
Source§fn from(required: OidcCallbackRequestRequired) -> Self
fn from(required: OidcCallbackRequestRequired) -> Self
A OidcCallbackRequest holding the members OidcCallbackRequestRequired holds, and every optional member unset, a member with a schema default included.
Source§impl PartialEq for OidcCallbackRequest
impl PartialEq for OidcCallbackRequest
Source§fn eq(&self, other: &OidcCallbackRequest) -> bool
fn eq(&self, other: &OidcCallbackRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for OidcCallbackRequest
impl Serialize for OidcCallbackRequest
impl StructuralPartialEq for OidcCallbackRequest
Auto Trait Implementations§
impl Freeze for OidcCallbackRequest
impl RefUnwindSafe for OidcCallbackRequest
impl Send for OidcCallbackRequest
impl Sync for OidcCallbackRequest
impl Unpin for OidcCallbackRequest
impl UnsafeUnpin for OidcCallbackRequest
impl UnwindSafe for OidcCallbackRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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