pub struct FreshnessReport {
pub decision: FreshnessDecision,
pub domain_class: DomainClass,
pub policy_kind: FreshnessPolicyKind,
pub contract_evaluated: bool,
}Expand description
Compact freshness report attached to acquisition results and
emitted via tracing.
Includes both the decision and (when invalidated) the structured reason fields, so downstream automation can attribute rejections without re-parsing log strings.
Fields§
§decision: FreshnessDecisionResolved decision for this run.
domain_class: DomainClassResolved DomainClass for the target host.
policy_kind: FreshnessPolicyKindPolicy band used.
contract_evaluated: boolWhether the contract was considered (vs. no contract supplied).
Implementations§
Source§impl FreshnessReport
impl FreshnessReport
Sourcepub fn skipped(
policy_kind: FreshnessPolicyKind,
domain_class: DomainClass,
) -> Self
pub fn skipped( policy_kind: FreshnessPolicyKind, domain_class: DomainClass, ) -> Self
A no-contract report (Valid, no evaluation performed).
Sourcepub fn evaluate(
contract: &FreshnessContract,
input: &FreshnessCheckInput,
) -> Self
pub fn evaluate( contract: &FreshnessContract, input: &FreshnessCheckInput, ) -> Self
Build a report from a contract + input pair.
Trait Implementations§
Source§impl Clone for FreshnessReport
impl Clone for FreshnessReport
Source§fn clone(&self) -> FreshnessReport
fn clone(&self) -> FreshnessReport
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 FreshnessReport
impl Debug for FreshnessReport
Source§impl<'de> Deserialize<'de> for FreshnessReport
impl<'de> Deserialize<'de> for FreshnessReport
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 FreshnessReport
impl PartialEq for FreshnessReport
Source§impl Serialize for FreshnessReport
impl Serialize for FreshnessReport
impl Eq for FreshnessReport
impl StructuralPartialEq for FreshnessReport
Auto Trait Implementations§
impl Freeze for FreshnessReport
impl RefUnwindSafe for FreshnessReport
impl Send for FreshnessReport
impl Sync for FreshnessReport
impl Unpin for FreshnessReport
impl UnsafeUnpin for FreshnessReport
impl UnwindSafe for FreshnessReport
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.