Struct biscuit::ClaimPresenceOptions
source · pub struct ClaimPresenceOptions {
pub issued_at: Presence,
pub not_before: Presence,
pub expiry: Presence,
pub issuer: Presence,
pub audience: Presence,
pub subject: Presence,
pub id: Presence,
}
Expand description
Options for claims presence validation
By default, no claims (namely iat
, exp
, nbf
, iss
, aud
)
are required, and they pass validation if they are missing.
Fields
issued_at: Presence
Whether the iat
or Issued At
field is required
not_before: Presence
Whether the nbf
or Not Before
field is required
expiry: Presence
Whether the exp
or Expiry
field is required
issuer: Presence
Whether the iss
or Issuer
field is required
audience: Presence
Whether the aud
or Audience
field is required
subject: Presence
Whether the sub
or Subject
field is required
id: Presence
Whether the jti
or JWT ID
field is required
Implementations
Trait Implementations
sourceimpl Clone for ClaimPresenceOptions
impl Clone for ClaimPresenceOptions
sourcefn clone(&self) -> ClaimPresenceOptions
fn clone(&self) -> ClaimPresenceOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClaimPresenceOptions
impl Debug for ClaimPresenceOptions
sourceimpl Default for ClaimPresenceOptions
impl Default for ClaimPresenceOptions
sourcefn default() -> ClaimPresenceOptions
fn default() -> ClaimPresenceOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ClaimPresenceOptions> for ClaimPresenceOptions
impl PartialEq<ClaimPresenceOptions> for ClaimPresenceOptions
sourcefn eq(&self, other: &ClaimPresenceOptions) -> bool
fn eq(&self, other: &ClaimPresenceOptions) -> bool
impl Copy for ClaimPresenceOptions
impl Eq for ClaimPresenceOptions
impl StructuralEq for ClaimPresenceOptions
impl StructuralPartialEq for ClaimPresenceOptions
Auto Trait Implementations
impl RefUnwindSafe for ClaimPresenceOptions
impl Send for ClaimPresenceOptions
impl Sync for ClaimPresenceOptions
impl Unpin for ClaimPresenceOptions
impl UnwindSafe for ClaimPresenceOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.