Struct mas_jose::constraints::ConstraintSet
source · pub struct ConstraintSet<'a> { /* private fields */ }
Implementations§
source§impl<'a> ConstraintSet<'a>
impl<'a> ConstraintSet<'a>
pub fn new(constraints: impl IntoIterator<Item = Constraint<'a>>) -> Self
pub fn filter<'b, T: Constrainable, I: IntoIterator<Item = &'b T>>( &self, constrainables: I, ) -> Vec<&'b T>
pub fn alg(self, constraint_alg: &'a JsonWebSignatureAlg) -> Self
pub fn algs(self, constraint_algs: &'a [JsonWebSignatureAlg]) -> Self
pub fn kid(self, constraint_kid: &'a str) -> Self
pub fn use_(self, constraint_use: &'a JsonWebKeyUse) -> Self
pub fn kty(self, constraint_kty: &'a JsonWebKeyType) -> Self
Trait Implementations§
source§impl<'a> Default for ConstraintSet<'a>
impl<'a> Default for ConstraintSet<'a>
source§fn default() -> ConstraintSet<'a>
fn default() -> ConstraintSet<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<&'a JsonWebSignatureHeader> for ConstraintSet<'a>
impl<'a> From<&'a JsonWebSignatureHeader> for ConstraintSet<'a>
source§fn from(header: &'a JsonWebSignatureHeader) -> Self
fn from(header: &'a JsonWebSignatureHeader) -> Self
Converts to this type from the input type.
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
Auto Trait Implementations§
impl<'a> Freeze for ConstraintSet<'a>
impl<'a> RefUnwindSafe for ConstraintSet<'a>
impl<'a> Send for ConstraintSet<'a>
impl<'a> Sync for ConstraintSet<'a>
impl<'a> Unpin for ConstraintSet<'a>
impl<'a> UnwindSafe for ConstraintSet<'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> 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