pub struct CommandRunReportV1 {Show 18 fields
pub receipt_id: ArtifactId,
pub kind: ArtifactKindV1,
pub tool_id: String,
pub sandbox_root: String,
pub command: Vec<String>,
pub permit_grant_id: Option<ArtifactId>,
pub permit_use_receipt_id: Option<ArtifactId>,
pub allowed_by_policy: bool,
pub exit_code: Option<i32>,
pub stdout_digest: DisplayDigestV1,
pub stderr_digest: DisplayDigestV1,
pub stdout_bytes: usize,
pub stderr_bytes: usize,
pub timed_out: bool,
pub succeeded: bool,
pub reason_codes: Vec<String>,
pub started_at: DateTime<Utc>,
pub completed_at: DateTime<Utc>,
}Fields§
§receipt_id: ArtifactId§kind: ArtifactKindV1§tool_id: String§sandbox_root: String§command: Vec<String>§permit_grant_id: Option<ArtifactId>§permit_use_receipt_id: Option<ArtifactId>§allowed_by_policy: bool§exit_code: Option<i32>§stdout_digest: DisplayDigestV1§stderr_digest: DisplayDigestV1§stdout_bytes: usize§stderr_bytes: usize§timed_out: bool§succeeded: bool§reason_codes: Vec<String>§started_at: DateTime<Utc>§completed_at: DateTime<Utc>Implementations§
Source§impl CommandRunReportV1
impl CommandRunReportV1
pub fn completed( sandbox_root: impl Into<String>, command: Vec<String>, permit_grant_id: Option<ArtifactId>, permit_use_receipt_id: Option<ArtifactId>, exit_code: Option<i32>, stdout: &str, stderr: &str, ) -> Self
pub fn blocked( sandbox_root: impl Into<String>, command: Vec<String>, reason: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for CommandRunReportV1
impl Clone for CommandRunReportV1
Source§fn clone(&self) -> CommandRunReportV1
fn clone(&self) -> CommandRunReportV1
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 CommandRunReportV1
impl Debug for CommandRunReportV1
Source§impl<'de> Deserialize<'de> for CommandRunReportV1
impl<'de> Deserialize<'de> for CommandRunReportV1
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
impl Eq for CommandRunReportV1
Source§impl JsonSchema for CommandRunReportV1
impl JsonSchema for CommandRunReportV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CommandRunReportV1
impl PartialEq for CommandRunReportV1
Source§fn eq(&self, other: &CommandRunReportV1) -> bool
fn eq(&self, other: &CommandRunReportV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandRunReportV1
impl Serialize for CommandRunReportV1
impl StructuralPartialEq for CommandRunReportV1
Auto Trait Implementations§
impl Freeze for CommandRunReportV1
impl RefUnwindSafe for CommandRunReportV1
impl Send for CommandRunReportV1
impl Sync for CommandRunReportV1
impl Unpin for CommandRunReportV1
impl UnsafeUnpin for CommandRunReportV1
impl UnwindSafe for CommandRunReportV1
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