#[non_exhaustive]pub struct ChainReview {
pub entry_count: usize,
pub integrity: IntegrityStatus,
pub earliest: Option<String>,
pub latest: Option<String>,
pub sources: BTreeMap<String, usize>,
pub severities: BTreeMap<String, usize>,
pub agents: BTreeMap<String, usize>,
pub head_hash: Option<String>,
pub continued_from: Option<String>,
}Expand description
A structured review of an audit chain’s contents and integrity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entry_count: usizeTotal number of entries.
integrity: IntegrityStatusWhether the chain passed integrity verification.
earliest: Option<String>Earliest entry timestamp (None if chain is empty).
latest: Option<String>Latest entry timestamp (None if chain is empty).
sources: BTreeMap<String, usize>Count of entries per source.
severities: BTreeMap<String, usize>Count of entries per severity level.
agents: BTreeMap<String, usize>Count of entries per agent (None-agent entries counted under “(none)”).
head_hash: Option<String>Head hash of the chain (None if empty).
continued_from: Option<String>Whether this chain continues from a previous (rotated) chain.
Trait Implementations§
Source§impl Debug for ChainReview
impl Debug for ChainReview
Source§impl<'de> Deserialize<'de> for ChainReview
impl<'de> Deserialize<'de> for ChainReview
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 Display for ChainReview
impl Display for ChainReview
Source§impl PartialEq for ChainReview
impl PartialEq for ChainReview
Source§impl Serialize for ChainReview
impl Serialize for ChainReview
impl StructuralPartialEq for ChainReview
Auto Trait Implementations§
impl Freeze for ChainReview
impl RefUnwindSafe for ChainReview
impl Send for ChainReview
impl Sync for ChainReview
impl Unpin for ChainReview
impl UnsafeUnpin for ChainReview
impl UnwindSafe for ChainReview
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