pub struct ContractReport {
pub results: Vec<BackendContractResult>,
pub all_passed: bool,
}Expand description
Contract validation report for backend responses.
Fields§
§results: Vec<BackendContractResult>Per-contract results
all_passed: boolOverall pass/fail
Implementations§
Source§impl ContractReport
impl ContractReport
Sourcepub fn empty_pass() -> Self
pub fn empty_pass() -> Self
Create an empty passing report.
Sourcepub fn from_results(results: Vec<BackendContractResult>) -> Self
pub fn from_results(results: Vec<BackendContractResult>) -> Self
Create a report from results.
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 · 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
Auto Trait Implementations§
impl Freeze for ContractReport
impl RefUnwindSafe for ContractReport
impl Send for ContractReport
impl Sync for ContractReport
impl Unpin 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