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