pub struct ReceiptEnvelope {
pub schema: String,
pub tool: ToolInfo,
pub run: RunInfo,
pub verdict: Verdict,
pub findings: Vec<Finding>,
pub capabilities: Option<ReceiptCapabilities>,
pub data: Option<Value>,
}Expand description
A generic sensor receipt envelope.
buildfix tries hard to be tolerant when reading receipts:
- Unknown fields are ignored.
- Optional fields may be absent.
The director and sensors should enforce stricter schema compliance; buildfix’s job is to be useful with receipts “as found”.
Fields§
§schema: StringSchema identifier, e.g. “buildscan.report.v1”.
tool: ToolInfo§run: RunInfo§verdict: Verdict§findings: Vec<Finding>§capabilities: Option<ReceiptCapabilities>Capabilities block for “No Green By Omission” pattern.
data: Option<Value>Optional, tool-specific payload.
Trait Implementations§
Source§impl Clone for ReceiptEnvelope
impl Clone for ReceiptEnvelope
Source§fn clone(&self) -> ReceiptEnvelope
fn clone(&self) -> ReceiptEnvelope
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 ReceiptEnvelope
impl Debug for ReceiptEnvelope
Source§impl<'de> Deserialize<'de> for ReceiptEnvelope
impl<'de> Deserialize<'de> for ReceiptEnvelope
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
Auto Trait Implementations§
impl Freeze for ReceiptEnvelope
impl RefUnwindSafe for ReceiptEnvelope
impl Send for ReceiptEnvelope
impl Sync for ReceiptEnvelope
impl Unpin for ReceiptEnvelope
impl UnsafeUnpin for ReceiptEnvelope
impl UnwindSafe for ReceiptEnvelope
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