pub struct InspectEvidenceSection {
pub status: InspectSectionStatus,
pub scope: InspectEvidenceScope,
pub message: Option<String>,
pub data: Option<Value>,
}Expand description
One evidence section: status, the scope the evidence covers, and either a data payload or a message explaining its absence.
Fields§
§status: InspectSectionStatusWhether the section’s analysis produced usable evidence.
scope: InspectEvidenceScopeGranularity the evidence covers.
message: Option<String>Explanation for error / unavailable sections.
data: Option<Value>Section payload; present when the analysis ran.
Implementations§
Source§impl InspectEvidenceSection
impl InspectEvidenceSection
Sourcepub fn ok(scope: InspectEvidenceScope, data: Value) -> Self
pub fn ok(scope: InspectEvidenceScope, data: Value) -> Self
Successful section carrying data.
Sourcepub fn semantic(
scope: InspectEvidenceScope,
status: SemanticCompleteness,
data: Value,
) -> Self
pub fn semantic( scope: InspectEvidenceScope, status: SemanticCompleteness, data: Value, ) -> Self
Section whose status mirrors the semantic backend’s completeness
verdict while still carrying data.
Sourcepub fn error(scope: InspectEvidenceScope, message: String) -> Self
pub fn error(scope: InspectEvidenceScope, message: String) -> Self
Failed section carrying only an explanation.
Section whose analysis could not run in this environment.
Trait Implementations§
Source§impl Clone for InspectEvidenceSection
impl Clone for InspectEvidenceSection
Source§impl Debug for InspectEvidenceSection
impl Debug for InspectEvidenceSection
Auto Trait Implementations§
impl Freeze for InspectEvidenceSection
impl RefUnwindSafe for InspectEvidenceSection
impl Send for InspectEvidenceSection
impl Sync for InspectEvidenceSection
impl Unpin for InspectEvidenceSection
impl UnsafeUnpin for InspectEvidenceSection
impl UnwindSafe for InspectEvidenceSection
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