Enum mas_jose::constraints::Constraint
source · 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§
source§impl<'a> Constraint<'a>
impl<'a> Constraint<'a>
pub fn alg(constraint_alg: &'a JsonWebSignatureAlg) -> Self
pub fn algs(constraint_algs: &'a [JsonWebSignatureAlg]) -> Self
pub fn kid(constraint_kid: &'a str) -> Self
pub fn use_(constraint_use: &'a JsonWebKeyUse) -> Self
pub fn kty(constraint_kty: &'a JsonWebKeyType) -> Self
Trait Implementations§
source§impl<'a> Clone for Constraint<'a>
impl<'a> Clone for Constraint<'a>
source§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 moresource§impl<'a> Debug for Constraint<'a>
impl<'a> Debug for Constraint<'a>
source§impl<'a> FromIterator<Constraint<'a>> for ConstraintSet<'a>
impl<'a> FromIterator<Constraint<'a>> for ConstraintSet<'a>
source§fn from_iter<T: IntoIterator<Item = Constraint<'a>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Constraint<'a>>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl<'a> Hash for Constraint<'a>
impl<'a> Hash for Constraint<'a>
source§impl<'a> PartialEq for Constraint<'a>
impl<'a> PartialEq for Constraint<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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> 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