pub struct AssetStatus {
pub id: &'static str,
pub analyzer: &'static str,
pub kind: AssetKind,
pub path: String,
pub installed: Option<InstalledAsset>,
pub age_days: Option<i64>,
pub verified: Option<bool>,
}Expand description
An asset’s state, as roteiro security status reports it.
Fields§
§id: &'static strThe asset id.
analyzer: &'static strThe analyzer that needs it.
kind: AssetKindWhat it is.
path: StringWhere it is (or would be) on disk.
installed: Option<InstalledAsset>What was recorded at provisioning time, if it has been provisioned.
age_days: Option<i64>Whole days since it was provisioned, when that can be computed.
verified: Option<bool>Whether the bytes on disk still match the recorded digest. None when
nothing is installed.
Trait Implementations§
Source§impl Clone for AssetStatus
impl Clone for AssetStatus
Source§fn clone(&self) -> AssetStatus
fn clone(&self) -> AssetStatus
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 AssetStatus
impl Debug for AssetStatus
impl Eq for AssetStatus
Source§impl PartialEq for AssetStatus
impl PartialEq for AssetStatus
Source§impl Serialize for AssetStatus
impl Serialize for AssetStatus
impl StructuralPartialEq for AssetStatus
Auto Trait Implementations§
impl Freeze for AssetStatus
impl RefUnwindSafe for AssetStatus
impl Send for AssetStatus
impl Sync for AssetStatus
impl Unpin for AssetStatus
impl UnsafeUnpin for AssetStatus
impl UnwindSafe for AssetStatus
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.