pub struct ContractExpectation {
pub status: Option<u16>,
pub headers: BTreeMap<String, String>,
pub json: Option<Value>,
pub json_schema: Option<Value>,
pub effects: Vec<Value>,
}Fields§
§status: Option<u16>§headers: BTreeMap<String, String>§json: Option<Value>§json_schema: Option<Value>§effects: Vec<Value>Trait Implementations§
Source§impl Clone for ContractExpectation
impl Clone for ContractExpectation
Source§impl Debug for ContractExpectation
impl Debug for ContractExpectation
Source§impl Default for ContractExpectation
impl Default for ContractExpectation
Source§impl<'de> Deserialize<'de> for ContractExpectation
impl<'de> Deserialize<'de> for ContractExpectation
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 ContractExpectation
impl JsonSchema for ContractExpectation
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 ContractExpectation
impl PartialEq for ContractExpectation
Source§impl Serialize for ContractExpectation
impl Serialize for ContractExpectation
impl StructuralPartialEq for ContractExpectation
Auto Trait Implementations§
impl Forget for ContractExpectation
impl Freeze for ContractExpectation
impl Move for ContractExpectation
impl RefUnwindSafe for ContractExpectation
impl Send for ContractExpectation
impl Sync for ContractExpectation
impl Unpin for ContractExpectation
impl UnsafeUnpin for ContractExpectation
impl UnwindSafe for ContractExpectation
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