pub struct Freshness {
pub cve_data_at: Option<String>,
pub behavioral_data_at: Option<String>,
pub policy_evaluated_at: Option<String>,
pub stalest_axis: Option<String>,
pub overall_as_of: Option<String>,
}Expand description
CLEANLIB-652 (CX-3) part 2: the App’s nested per-axis freshness block
(mirrors verbs::Freshness). Each axis age is Option — under precedence
composition only the producing axis carries a timestamp and the others are
null; overall_as_of = MIN of the non-null axis ages (the verdict is only as
fresh as its stalest input). All-optional + #[serde(default)] for tolerant,
forward-compatible parsing.
Fields§
§cve_data_at: Option<String>§behavioral_data_at: Option<String>§policy_evaluated_at: Option<String>§stalest_axis: Option<String>Which axis is stalest — drives the overall_as_of age.
overall_as_of: Option<String>MIN of the non-null per-axis ages.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Freshness
impl<'de> Deserialize<'de> for Freshness
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
impl StructuralPartialEq for Freshness
Auto Trait Implementations§
impl Freeze for Freshness
impl RefUnwindSafe for Freshness
impl Send for Freshness
impl Sync for Freshness
impl Unpin for Freshness
impl UnsafeUnpin for Freshness
impl UnwindSafe for Freshness
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