pub struct InvalidationReason {
pub contract_domain: String,
pub observed_domain: String,
pub contract_signature: Option<String>,
pub observed_signature: Option<String>,
pub captured_at_epoch_ms: u64,
pub observed_at_epoch_ms: u64,
pub elapsed_ms: u64,
pub max_age_ms: u64,
pub policy_kind: FreshnessPolicyKind,
pub domain_class: DomainClass,
pub kind: InvalidationKind,
}Expand description
Structured reason a freshness contract was invalidated.
All fields are populated regardless of which rule fired so telemetry always carries the full context.
Fields§
§contract_domain: StringContract’s bound domain (lower-case).
observed_domain: StringObserved domain passed to check.
contract_signature: Option<String>Contract’s bound signature (when set).
observed_signature: Option<String>Observed signature passed to check (when set).
captured_at_epoch_ms: u64Contract’s captured-at timestamp.
observed_at_epoch_ms: u64Observed timestamp passed to check.
elapsed_ms: u64Elapsed milliseconds between capture and observation.
max_age_ms: u64Contract’s max-age in milliseconds.
policy_kind: FreshnessPolicyKindPolicy band used.
domain_class: DomainClassDomain class used.
kind: InvalidationKindStable machine-readable reason tag.
Trait Implementations§
Source§impl Clone for InvalidationReason
impl Clone for InvalidationReason
Source§fn clone(&self) -> InvalidationReason
fn clone(&self) -> InvalidationReason
Returns a duplicate 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 InvalidationReason
impl Debug for InvalidationReason
Source§impl<'de> Deserialize<'de> for InvalidationReason
impl<'de> Deserialize<'de> for InvalidationReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InvalidationReason
impl PartialEq for InvalidationReason
Source§impl Serialize for InvalidationReason
impl Serialize for InvalidationReason
impl Eq for InvalidationReason
impl StructuralPartialEq for InvalidationReason
Auto Trait Implementations§
impl Freeze for InvalidationReason
impl RefUnwindSafe for InvalidationReason
impl Send for InvalidationReason
impl Sync for InvalidationReason
impl Unpin for InvalidationReason
impl UnsafeUnpin for InvalidationReason
impl UnwindSafe for InvalidationReason
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.