pub enum EvidenceState<T> {
Complete {
value: T,
},
Partial {
value: T,
gaps: Vec<EvidenceGap>,
},
Missing {
gaps: Vec<EvidenceGap>,
},
NotApplicable,
}Expand description
Represents the completeness of a collected evidence value.
Controls use this to distinguish between a verified absence and an evidence-collection failure, which maps to different control statuses.
Variants§
Complete
All expected data was collected successfully.
Fields
§
value: TPartial
Data was collected but some aspects are missing or degraded.
Missing
No usable data could be collected; only gap descriptions remain.
Fields
§
gaps: Vec<EvidenceGap>NotApplicable
The evidence category does not apply to this context.
Implementations§
Source§impl<T> EvidenceState<T>
impl<T> EvidenceState<T>
pub fn complete(value: T) -> Self
pub fn partial(value: T, gaps: Vec<EvidenceGap>) -> Self
pub fn missing(gaps: Vec<EvidenceGap>) -> Self
pub fn not_applicable() -> Self
pub fn value(&self) -> Option<&T>
pub fn gaps(&self) -> &[EvidenceGap]
pub fn has_gaps(&self) -> bool
Trait Implementations§
Source§impl<T: Clone> Clone for EvidenceState<T>
impl<T: Clone> Clone for EvidenceState<T>
Source§fn clone(&self) -> EvidenceState<T>
fn clone(&self) -> EvidenceState<T>
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<T: Debug> Debug for EvidenceState<T>
impl<T: Debug> Debug for EvidenceState<T>
Source§impl<T> Default for EvidenceState<T>
impl<T> Default for EvidenceState<T>
Source§fn default() -> EvidenceState<T>
fn default() -> EvidenceState<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for EvidenceState<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EvidenceState<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for EvidenceState<T>
impl<T: PartialEq> PartialEq for EvidenceState<T>
Source§impl<T> Serialize for EvidenceState<T>where
T: Serialize,
impl<T> Serialize for EvidenceState<T>where
T: Serialize,
impl<T: Eq> Eq for EvidenceState<T>
impl<T> StructuralPartialEq for EvidenceState<T>
Auto Trait Implementations§
impl<T> Freeze for EvidenceState<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvidenceState<T>where
T: RefUnwindSafe,
impl<T> Send for EvidenceState<T>where
T: Send,
impl<T> Sync for EvidenceState<T>where
T: Sync,
impl<T> Unpin for EvidenceState<T>where
T: Unpin,
impl<T> UnsafeUnpin for EvidenceState<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EvidenceState<T>where
T: UnwindSafe,
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