pub struct SensorReport {
pub schema: String,
pub tool: ToolMeta,
pub run: RunMeta,
pub verdict: Verdict,
pub findings: Vec<SensorFinding>,
pub artifacts: Vec<Artifact>,
pub data: Option<Value>,
}Expand description
The sensor.report.v1 envelope for Cockpit ecosystem integration.
Fields§
§schema: StringSchema identifier, always “sensor.report.v1”.
tool: ToolMetaTool metadata.
run: RunMetaRun timing and capability information.
verdict: VerdictOverall verdict.
findings: Vec<SensorFinding>Findings in sensor format.
artifacts: Vec<Artifact>List of artifacts produced.
data: Option<Value>Additional data payload (diff metadata, etc.).
Trait Implementations§
Source§impl Clone for SensorReport
impl Clone for SensorReport
Source§fn clone(&self) -> SensorReport
fn clone(&self) -> SensorReport
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 Debug for SensorReport
impl Debug for SensorReport
Source§impl<'de> Deserialize<'de> for SensorReport
impl<'de> Deserialize<'de> for SensorReport
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 JsonSchema for SensorReport
impl JsonSchema for SensorReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SensorReport
impl PartialEq for SensorReport
Source§impl Serialize for SensorReport
impl Serialize for SensorReport
impl StructuralPartialEq for SensorReport
Auto Trait Implementations§
impl Freeze for SensorReport
impl RefUnwindSafe for SensorReport
impl Send for SensorReport
impl Sync for SensorReport
impl Unpin for SensorReport
impl UnsafeUnpin for SensorReport
impl UnwindSafe for SensorReport
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