pub struct PatchApplyReportV1 {Show 19 fields
pub receipt_id: ArtifactId,
pub kind: ArtifactKindV1,
pub tool_id: String,
pub sandbox_root: String,
pub proposal_id: Option<ArtifactId>,
pub permit_grant_id: Option<ArtifactId>,
pub permit_use_receipt_id: Option<ArtifactId>,
pub touched_paths: Vec<String>,
pub input_digest: DisplayDigestV1,
pub before_digests: BTreeMap<String, DisplayDigestV1>,
pub after_digests: BTreeMap<String, DisplayDigestV1>,
pub applied: bool,
pub changed_files: Vec<String>,
pub dry_run_checked: bool,
pub semantic_status: String,
pub failure_kind: Option<String>,
pub rollback_advice: Vec<String>,
pub reason_codes: Vec<String>,
pub applied_at: DateTime<Utc>,
}Fields§
§receipt_id: ArtifactId§kind: ArtifactKindV1§tool_id: String§sandbox_root: String§proposal_id: Option<ArtifactId>§permit_grant_id: Option<ArtifactId>§permit_use_receipt_id: Option<ArtifactId>§touched_paths: Vec<String>§input_digest: DisplayDigestV1§before_digests: BTreeMap<String, DisplayDigestV1>§after_digests: BTreeMap<String, DisplayDigestV1>§applied: bool§changed_files: Vec<String>§dry_run_checked: bool§semantic_status: String§failure_kind: Option<String>§rollback_advice: Vec<String>§reason_codes: Vec<String>§applied_at: DateTime<Utc>Implementations§
Source§impl PatchApplyReportV1
impl PatchApplyReportV1
pub fn new( sandbox_root: impl Into<String>, input: &Value, touched_paths: Vec<String>, before_digests: BTreeMap<String, DisplayDigestV1>, after_digests: BTreeMap<String, DisplayDigestV1>, permit_grant_id: Option<ArtifactId>, permit_use_receipt_id: Option<ArtifactId>, ) -> Self
pub fn checked( sandbox_root: impl Into<String>, input: &Value, touched_paths: Vec<String>, before_digests: BTreeMap<String, DisplayDigestV1>, after_digests: BTreeMap<String, DisplayDigestV1>, permit_grant_id: Option<ArtifactId>, permit_use_receipt_id: Option<ArtifactId>, ) -> Self
pub fn denied( sandbox_root: impl Into<String>, input: &Value, reason: impl Into<String>, ) -> Self
pub fn denied_with_details( sandbox_root: impl Into<String>, input: &Value, reason: impl Into<String>, failure_kind: impl Into<String>, touched_paths: Vec<String>, permit_grant_id: Option<ArtifactId>, permit_use_receipt_id: Option<ArtifactId>, ) -> Self
Trait Implementations§
Source§impl Clone for PatchApplyReportV1
impl Clone for PatchApplyReportV1
Source§fn clone(&self) -> PatchApplyReportV1
fn clone(&self) -> PatchApplyReportV1
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 PatchApplyReportV1
impl Debug for PatchApplyReportV1
Source§impl<'de> Deserialize<'de> for PatchApplyReportV1
impl<'de> Deserialize<'de> for PatchApplyReportV1
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 PatchApplyReportV1
Source§impl JsonSchema for PatchApplyReportV1
impl JsonSchema for PatchApplyReportV1
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 PatchApplyReportV1
impl PartialEq for PatchApplyReportV1
Source§fn eq(&self, other: &PatchApplyReportV1) -> bool
fn eq(&self, other: &PatchApplyReportV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchApplyReportV1
impl Serialize for PatchApplyReportV1
impl StructuralPartialEq for PatchApplyReportV1
Auto Trait Implementations§
impl Freeze for PatchApplyReportV1
impl RefUnwindSafe for PatchApplyReportV1
impl Send for PatchApplyReportV1
impl Sync for PatchApplyReportV1
impl Unpin for PatchApplyReportV1
impl UnsafeUnpin for PatchApplyReportV1
impl UnwindSafe for PatchApplyReportV1
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