Enum mas_oidc_client::jose::constraints::Constraint
pub enum Constraint<'a> {
Alg {
constraint_alg: &'a JsonWebSignatureAlg,
},
Algs {
constraint_algs: &'a [JsonWebSignatureAlg],
},
Kid {
constraint_kid: &'a str,
},
Use {
constraint_use: &'a JsonWebKeyUse,
},
Kty {
constraint_kty: &'a JsonWebKeyType,
},
}
Variants§
Alg
Fields
§
constraint_alg: &'a JsonWebSignatureAlg
Algs
Fields
§
constraint_algs: &'a [JsonWebSignatureAlg]
Kid
Use
Fields
§
constraint_use: &'a JsonWebKeyUse
Kty
Fields
§
constraint_kty: &'a JsonWebKeyType
Implementations§
§impl<'a> Constraint<'a>
impl<'a> Constraint<'a>
pub fn alg(constraint_alg: &'a JsonWebSignatureAlg) -> Constraint<'a>
pub fn algs(constraint_algs: &'a [JsonWebSignatureAlg]) -> Constraint<'a>
pub fn kid(constraint_kid: &'a str) -> Constraint<'a>
pub fn use_(constraint_use: &'a JsonWebKeyUse) -> Constraint<'a>
pub fn kty(constraint_kty: &'a JsonWebKeyType) -> Constraint<'a>
Trait Implementations§
§impl<'a> Clone for Constraint<'a>
impl<'a> Clone for Constraint<'a>
§fn clone(&self) -> Constraint<'a>
fn clone(&self) -> Constraint<'a>
Returns a copy 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 more§impl<'a> Debug for Constraint<'a>
impl<'a> Debug for Constraint<'a>
§impl<'a> FromIterator<Constraint<'a>> for ConstraintSet<'a>
impl<'a> FromIterator<Constraint<'a>> for ConstraintSet<'a>
§fn from_iter<T>(iter: T) -> ConstraintSet<'a>where
T: IntoIterator<Item = Constraint<'a>>,
fn from_iter<T>(iter: T) -> ConstraintSet<'a>where
T: IntoIterator<Item = Constraint<'a>>,
Creates a value from an iterator. Read more
§impl<'a> Hash for Constraint<'a>
impl<'a> Hash for Constraint<'a>
§impl<'a> PartialEq for Constraint<'a>
impl<'a> PartialEq for Constraint<'a>
§fn eq(&self, other: &Constraint<'a>) -> bool
fn eq(&self, other: &Constraint<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for Constraint<'a>
impl<'a> StructuralPartialEq for Constraint<'a>
Auto Trait Implementations§
impl<'a> Freeze for Constraint<'a>
impl<'a> RefUnwindSafe for Constraint<'a>
impl<'a> Send for Constraint<'a>
impl<'a> Sync for Constraint<'a>
impl<'a> Unpin for Constraint<'a>
impl<'a> UnwindSafe for Constraint<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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
Compare self to
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
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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