#[non_exhaustive]pub enum JwtTargetAcceptanceLegRole {
ValidCandidate,
AnonymousCandidate,
InvalidCandidate,
ValidReplay,
AnonymousReplay,
InvalidReplay,
}Expand description
Exact closed order of target-acceptance request roles.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValidCandidate
Valid token, first observation.
AnonymousCandidate
No Authorization value, first observation.
InvalidCandidate
Invalid-signature token, first observation.
ValidReplay
Valid token replay.
AnonymousReplay
No Authorization value, replay.
InvalidReplay
Invalid-signature token replay.
Implementations§
Source§impl JwtTargetAcceptanceLegRole
impl JwtTargetAcceptanceLegRole
Sourcepub const fn stage(self) -> JwtTargetAcceptanceLegStage
pub const fn stage(self) -> JwtTargetAcceptanceLegStage
Candidate/replay stage associated with this role.
Sourcepub const fn activity(self) -> JwtTargetAcceptanceActivity
pub const fn activity(self) -> JwtTargetAcceptanceActivity
Passive/active classification associated with this role.
Whether an Authorization value is required for the role.
Sourcepub const fn uses_valid_token(self) -> bool
pub const fn uses_valid_token(self) -> bool
Whether the role uses the supplied valid token.
Sourcepub const fn uses_invalid_token(self) -> bool
pub const fn uses_invalid_token(self) -> bool
Whether the role uses the invalid-signature control token.
Sourcepub const fn is_anonymous(self) -> bool
pub const fn is_anonymous(self) -> bool
Whether the role omits Authorization.
Trait Implementations§
Source§impl Clone for JwtTargetAcceptanceLegRole
impl Clone for JwtTargetAcceptanceLegRole
Source§fn clone(&self) -> JwtTargetAcceptanceLegRole
fn clone(&self) -> JwtTargetAcceptanceLegRole
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 moreimpl Copy for JwtTargetAcceptanceLegRole
Source§impl Debug for JwtTargetAcceptanceLegRole
impl Debug for JwtTargetAcceptanceLegRole
Source§impl<'de> Deserialize<'de> for JwtTargetAcceptanceLegRole
impl<'de> Deserialize<'de> for JwtTargetAcceptanceLegRole
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JwtTargetAcceptanceLegRole
Source§impl Ord for JwtTargetAcceptanceLegRole
impl Ord for JwtTargetAcceptanceLegRole
Source§fn cmp(&self, other: &JwtTargetAcceptanceLegRole) -> Ordering
fn cmp(&self, other: &JwtTargetAcceptanceLegRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for JwtTargetAcceptanceLegRole
impl PartialOrd for JwtTargetAcceptanceLegRole
impl StructuralPartialEq for JwtTargetAcceptanceLegRole
Auto Trait Implementations§
impl Freeze for JwtTargetAcceptanceLegRole
impl RefUnwindSafe for JwtTargetAcceptanceLegRole
impl Send for JwtTargetAcceptanceLegRole
impl Sync for JwtTargetAcceptanceLegRole
impl Unpin for JwtTargetAcceptanceLegRole
impl UnsafeUnpin for JwtTargetAcceptanceLegRole
impl UnwindSafe for JwtTargetAcceptanceLegRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more