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§
source§impl Clone for ClaimPresenceOptions
impl Clone for ClaimPresenceOptions
source§fn clone(&self) -> ClaimPresenceOptions
fn clone(&self) -> ClaimPresenceOptions
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 Debug for ClaimPresenceOptions
impl Debug for ClaimPresenceOptions
source§impl Default for ClaimPresenceOptions
impl Default for ClaimPresenceOptions
source§fn default() -> ClaimPresenceOptions
fn default() -> ClaimPresenceOptions
Returns the “default value” for a type. Read more
source§impl PartialEq<ClaimPresenceOptions> for ClaimPresenceOptions
impl PartialEq<ClaimPresenceOptions> for ClaimPresenceOptions
source§fn eq(&self, other: &ClaimPresenceOptions) -> bool
fn eq(&self, other: &ClaimPresenceOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.