pub struct RequestReplay<'a> {
pub seen_nonces: &'a mut HashSet<String>,
pub max_age_seconds: i64,
pub clock_skew_seconds: i64,
pub trusted_operators: Option<&'a HashSet<String>>,
}Expand description
Replay limits for authorize_access: the request may be no older than
max_age_seconds and not from the future (both with clock_skew_seconds),
and its nonce must not be in seen_nonces (it is added when access is
allowed).
Fields§
§seen_nonces: &'a mut HashSet<String>§max_age_seconds: i64§clock_skew_seconds: i64§trusted_operators: Option<&'a HashSet<String>>With no operator key, the grant verifies only when its did:key operator is in this non-empty set.
Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for RequestReplay<'a>
impl<'a> Forget for RequestReplay<'a>
impl<'a> Freeze for RequestReplay<'a>
impl<'a> Move for RequestReplay<'a>
impl<'a> RefUnwindSafe for RequestReplay<'a>
impl<'a> Send for RequestReplay<'a>
impl<'a> Sync for RequestReplay<'a>
impl<'a> Unpin for RequestReplay<'a>
impl<'a> UnsafeUnpin for RequestReplay<'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