pub struct LayerStaleness {
pub layer: String,
pub analyzer: String,
pub findings: usize,
pub runner: RunnerKind,
pub isolation: Isolation,
pub advisory_db: Option<AdvisoryDb>,
pub advisory_db_age_days: Option<i64>,
pub possibly_stale: bool,
}Expand description
The staleness of the advisory data behind one live findings layer.
Counts, never findings: this is the shape that lets a status document stay a fixed size while a listing needs a page bound.
Fields§
§layer: StringThe layer key.
analyzer: StringThe analyzer that owns it.
findings: usizeHow many findings it holds.
runner: RunnerKindWhich backend produced it.
isolation: IsolationThe isolation boundary that run actually had.
advisory_db: Option<AdvisoryDb>The pinned advisory database it consulted, when it had one.
advisory_db_age_days: Option<i64>Days between the advisory database’s publication and now.
possibly_stale: booltrue whenever an advisory database is involved at all. Never false
meaning “current” — only “this result has no advisory-data axis”.
Trait Implementations§
Source§impl Clone for LayerStaleness
impl Clone for LayerStaleness
Source§fn clone(&self) -> LayerStaleness
fn clone(&self) -> LayerStaleness
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 moreSource§impl Debug for LayerStaleness
impl Debug for LayerStaleness
Auto Trait Implementations§
impl Freeze for LayerStaleness
impl RefUnwindSafe for LayerStaleness
impl Send for LayerStaleness
impl Sync for LayerStaleness
impl Unpin for LayerStaleness
impl UnsafeUnpin for LayerStaleness
impl UnwindSafe for LayerStaleness
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