pub struct VerifierState {
pub now: i64,
pub audience: String,
pub online: bool,
pub revocation_age_sec: i64,
pub revoked_ids: BTreeSet<String>,
pub used_nonces: BTreeSet<String>,
pub uses: BTreeMap<String, u64>,
pub spent_total: BTreeMap<String, f64>,
pub offline_limit: f64,
}Expand description
Mutable verifier state — what the gateway knows at decision time.
Fields§
§now: i64§audience: String§online: bool§revocation_age_sec: i64§revoked_ids: BTreeSet<String>§used_nonces: BTreeSet<String>§uses: BTreeMap<String, u64>authority_id -> uses already consumed.
spent_total: BTreeMap<String, f64>authority_id -> value already spent.
offline_limit: f64A payment above this value cannot be authorized while offline.
Trait Implementations§
Source§impl Clone for VerifierState
impl Clone for VerifierState
Source§impl Debug for VerifierState
impl Debug for VerifierState
Auto Trait Implementations§
impl Forget for VerifierState
impl Freeze for VerifierState
impl Move for VerifierState
impl RefUnwindSafe for VerifierState
impl Send for VerifierState
impl Sync for VerifierState
impl Unpin for VerifierState
impl UnsafeUnpin for VerifierState
impl UnwindSafe for VerifierState
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