pub struct ValidationParams {
pub now: UnixTime,
pub max_clock_skew: Duration,
pub max_ttl: Duration,
pub default_ttl: Duration,
pub allowed_audiences: BTreeSet<Subject>,
pub role: MessageRole,
}Expand description
Parameterized validation bounds. The broker feeds its [invocation]
config. now is injected, never sampled
internally: a broker-free crate does not own time policy.
Fields§
§now: UnixTimeThe verifier’s current time.
max_clock_skew: DurationMaximum tolerated clock skew in either direction.
max_ttl: DurationCap on an explicit exp - iat span.
default_ttl: DurationEffective TTL when exp is absent.
allowed_audiences: BTreeSet<Subject>Empty = no audience restriction configured. When non-empty, a present
aud must match; messages without aud are accepted.
role: MessageRoleThe claim shape to demand.
Trait Implementations§
Source§impl Clone for ValidationParams
impl Clone for ValidationParams
Source§fn clone(&self) -> ValidationParams
fn clone(&self) -> ValidationParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationParams
impl Debug for ValidationParams
impl Eq for ValidationParams
Source§impl PartialEq for ValidationParams
impl PartialEq for ValidationParams
Source§fn eq(&self, other: &ValidationParams) -> bool
fn eq(&self, other: &ValidationParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidationParams
Auto Trait Implementations§
impl Freeze for ValidationParams
impl RefUnwindSafe for ValidationParams
impl Send for ValidationParams
impl Sync for ValidationParams
impl Unpin for ValidationParams
impl UnsafeUnpin for ValidationParams
impl UnwindSafe for ValidationParams
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