pub enum SuppliedSessionRuntimeInput {
Ready(SuppliedSessionCredential),
FormLogin(SuppliedSessionFormCredential),
OAuthCode(SuppliedSessionOAuthGrant),
OAuthAuthorization(Box<SuppliedSessionOAuthAuthorization>),
}Expand description
One prevalidated runtime input: either a ready outbound credential or the guarded values needed for the single bounded login transition.
Variants§
Ready(SuppliedSessionCredential)
An already supplied Authorization value or cookie jar.
FormLogin(SuppliedSessionFormCredential)
One username/password pair for a policy-bound form login.
OAuthCode(SuppliedSessionOAuthGrant)
One guarded, externally obtained authorization code/PKCE transaction.
OAuthAuthorization(Box<SuppliedSessionOAuthAuthorization>)
One explicitly selected, bounded private handoff writer; no secret import.
Implementations§
Source§impl SuppliedSessionRuntimeInput
impl SuppliedSessionRuntimeInput
Sourcepub fn matches_policy(&self, policy: &SuppliedSessionPolicy) -> bool
pub fn matches_policy(&self, policy: &SuppliedSessionPolicy) -> bool
Whether this runtime input is exactly compatible with the policy.
Trait Implementations§
Source§impl Debug for SuppliedSessionRuntimeInput
impl Debug for SuppliedSessionRuntimeInput
Source§impl From<SuppliedSessionAuthorization> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionAuthorization> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionAuthorization) -> Self
fn from(value: SuppliedSessionAuthorization) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionCookies> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionCookies> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionCookies) -> Self
fn from(value: SuppliedSessionCookies) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionCredential> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionCredential> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionCredential) -> Self
fn from(value: SuppliedSessionCredential) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionFormCredential> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionFormCredential> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionFormCredential) -> Self
fn from(value: SuppliedSessionFormCredential) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionOAuthAuthorization> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionOAuthAuthorization> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionOAuthAuthorization) -> Self
fn from(value: SuppliedSessionOAuthAuthorization) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionOAuthGrant> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionOAuthGrant> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionOAuthGrant) -> Self
fn from(value: SuppliedSessionOAuthGrant) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SuppliedSessionRuntimeInput
impl !UnwindSafe for SuppliedSessionRuntimeInput
impl Freeze for SuppliedSessionRuntimeInput
impl Send for SuppliedSessionRuntimeInput
impl Sync for SuppliedSessionRuntimeInput
impl Unpin for SuppliedSessionRuntimeInput
impl UnsafeUnpin for SuppliedSessionRuntimeInput
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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