pub struct ContainerProofReceipt {
pub schema_version: SchemaVersion,
pub tool: ToolInfo,
pub checked_at: DateTime<Utc>,
pub mode: String,
pub compatibility: Compatibility,
pub summary: ReceiptSummary,
pub subjects: Vec<Subject>,
pub checks: Vec<Check>,
}Expand description
The top-level receipt. The same shape is emitted by all four commands.
Fields§
§schema_version: SchemaVersion§tool: ToolInfo§checked_at: DateTime<Utc>§mode: String§compatibility: Compatibility§summary: ReceiptSummary§subjects: Vec<Subject>§checks: Vec<Check>Implementations§
Source§impl ContainerProofReceipt
impl ContainerProofReceipt
Sourcepub fn build(
mode: impl Into<String>,
subjects: Vec<Subject>,
receipt_checks: Vec<Check>,
) -> Self
pub fn build( mode: impl Into<String>, subjects: Vec<Subject>, receipt_checks: Vec<Check>, ) -> Self
Construct a receipt from a mode label and a list of subjects, plus any receipt-level checks (e.g. workflow-scan rollups). Aggregates summary and compatibility automatically.
Sourcepub fn is_success(&self, strict: bool) -> bool
pub fn is_success(&self, strict: bool) -> bool
True when no check is fail, used by the CLI to decide exit code. With
strict, warnings are treated as failures.
Trait Implementations§
Source§impl Clone for ContainerProofReceipt
impl Clone for ContainerProofReceipt
Source§fn clone(&self) -> ContainerProofReceipt
fn clone(&self) -> ContainerProofReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContainerProofReceipt
impl Debug for ContainerProofReceipt
Source§impl<'de> Deserialize<'de> for ContainerProofReceipt
impl<'de> Deserialize<'de> for ContainerProofReceipt
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 PartialEq for ContainerProofReceipt
impl PartialEq for ContainerProofReceipt
Source§fn eq(&self, other: &ContainerProofReceipt) -> bool
fn eq(&self, other: &ContainerProofReceipt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerProofReceipt
impl Serialize for ContainerProofReceipt
impl Eq for ContainerProofReceipt
impl StructuralPartialEq for ContainerProofReceipt
Auto Trait Implementations§
impl Freeze for ContainerProofReceipt
impl RefUnwindSafe for ContainerProofReceipt
impl Send for ContainerProofReceipt
impl Sync for ContainerProofReceipt
impl Unpin for ContainerProofReceipt
impl UnsafeUnpin for ContainerProofReceipt
impl UnwindSafe for ContainerProofReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.