pub struct LineageHeadPolicy {
pub receipts: ReceiptPolicy,
pub max_clock_skew_seconds: u32,
pub max_age_seconds: Option<u32>,
}Expand description
How to treat the optional lineage_head_receipt on
GET /lineages/{id}/current responses (ACDP 0.3, RFC-ACDP-0011).
The presence handling reuses the ReceiptPolicy vocabulary; the
two numeric knobs are the RFC’s consumer-side parameters:
max_clock_skew_seconds— §7 step 6’s forward-skew allowance. A receipt whoseas_ofis further in the future fails verification (invalid_receipt, fixturelhr-004). RFC RECOMMENDED: 120.max_age_seconds— §6’s freshness policy. A receipt older than this is still verified (it may be perfectly genuine — merely old); it is reported distinctly viaVerifiedContext::head_receipt_stale, never as a verification failure. RFC RECOMMENDED default: 300.Nonedisables the staleness verdict.
Fields§
§receipts: ReceiptPolicyPresence handling: Ignore (skip verification, preserve
verbatim), VerifyIfPresent (default), or Require (fail
closed unless present AND verified — appropriate when the
registry advertises acdp-registry-head-receipts, under which
a head receipt on /current is REQUIRED, RFC-ACDP-0011 §6).
max_clock_skew_seconds: u32RFC-ACDP-0011 §7 step 6 clock-skew allowance (default 120 s).
max_age_seconds: Option<u32>RFC-ACDP-0011 §6 maximum acceptable receipt age for the
staleness verdict (default Some(300)).
Trait Implementations§
Source§impl Clone for LineageHeadPolicy
impl Clone for LineageHeadPolicy
Source§fn clone(&self) -> LineageHeadPolicy
fn clone(&self) -> LineageHeadPolicy
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 moreimpl Copy for LineageHeadPolicy
Source§impl Debug for LineageHeadPolicy
impl Debug for LineageHeadPolicy
Source§impl Default for LineageHeadPolicy
impl Default for LineageHeadPolicy
impl Eq for LineageHeadPolicy
Source§impl PartialEq for LineageHeadPolicy
impl PartialEq for LineageHeadPolicy
Source§fn eq(&self, other: &LineageHeadPolicy) -> bool
fn eq(&self, other: &LineageHeadPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineageHeadPolicy
Auto Trait Implementations§
impl Freeze for LineageHeadPolicy
impl RefUnwindSafe for LineageHeadPolicy
impl Send for LineageHeadPolicy
impl Sync for LineageHeadPolicy
impl Unpin for LineageHeadPolicy
impl UnsafeUnpin for LineageHeadPolicy
impl UnwindSafe for LineageHeadPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.