pub struct ContractReport {
pub schema_version: u32,
pub result_version: u32,
pub action: ContractAction,
pub contracts: Vec<ContractView>,
pub links: Vec<ContractLink>,
pub compatibility: Vec<ContractCompatibilitySummary>,
pub differences: Vec<ContractDifference>,
pub issues: Vec<ContractIssue>,
pub valid: Option<bool>,
pub complete: bool,
pub truncated: bool,
}Expand description
Result of one contract application operation.
Fields§
§schema_version: u32Public schema version.
result_version: u32Public result version.
action: ContractActionCompleted operation.
contracts: Vec<ContractView>Selected contracts.
links: Vec<ContractLink>Direct links selected by explain-link.
compatibility: Vec<ContractCompatibilitySummary>Supplied source-free compatibility results.
differences: Vec<ContractDifference>Structural differences selected by diff.
issues: Vec<ContractIssue>Validation and coverage issues.
valid: Option<bool>Some(true) only when validation completed without unknowns or errors.
complete: boolWhether all required inputs were observed.
truncated: boolWhether the requested result exceeded its bound.
Trait Implementations§
Source§impl Clone for ContractReport
impl Clone for ContractReport
Source§fn clone(&self) -> ContractReport
fn clone(&self) -> ContractReport
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 ContractReport
impl Debug for ContractReport
Source§impl<'de> Deserialize<'de> for ContractReport
impl<'de> Deserialize<'de> for ContractReport
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 ContractReport
impl JsonSchema for ContractReport
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 ContractReport
impl PartialEq for ContractReport
Source§impl Serialize for ContractReport
impl Serialize for ContractReport
impl StructuralPartialEq for ContractReport
Auto Trait Implementations§
impl Freeze for ContractReport
impl RefUnwindSafe for ContractReport
impl Send for ContractReport
impl Sync for ContractReport
impl Unpin for ContractReport
impl UnsafeUnpin for ContractReport
impl UnwindSafe for ContractReport
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