pub struct ContractSpec {
pub primary_contains: Option<String>,
pub method: Option<String>,
pub body_contains: Option<String>,
pub reply: Option<String>,
pub reply_path: Option<String>,
}Expand description
A JSON-authorable contract file ({ "body_contains": "...", "reply": "..." }). Present fields
are combined with AND. Use reply inline or reply_path to point at a sibling response file.
Fields§
§primary_contains: Option<String>primary (URL/method) contains this.
method: Option<String>primary equals this.
body_contains: Option<String>Body contains this.
reply: Option<String>Inline recorded response.
reply_path: Option<String>Path (relative to the spec file) of the recorded response.
Implementations§
Source§impl ContractSpec
impl ContractSpec
Trait Implementations§
Source§impl Clone for ContractSpec
impl Clone for ContractSpec
Source§impl Debug for ContractSpec
impl Debug for ContractSpec
Source§impl<'de> Deserialize<'de> for ContractSpec
impl<'de> Deserialize<'de> for ContractSpec
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 ContractSpec
impl RefUnwindSafe for ContractSpec
impl Send for ContractSpec
impl Sync for ContractSpec
impl Unpin for ContractSpec
impl UnsafeUnpin for ContractSpec
impl UnwindSafe for ContractSpec
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