pub struct HttpCall {
pub method: String,
pub url: String,
pub status: Option<u16>,
pub request_headers: BTreeMap<String, String>,
pub response_headers: BTreeMap<String, String>,
pub request_body: Option<CanonicalValue>,
pub response_body: Option<CanonicalValue>,
}Fields§
§method: String§url: String§status: Option<u16>§request_headers: BTreeMap<String, String>§response_headers: BTreeMap<String, String>§request_body: Option<CanonicalValue>§response_body: Option<CanonicalValue>Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpCall
impl<'de> Deserialize<'de> for HttpCall
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 HttpCall
impl JsonSchema for HttpCall
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 moreimpl StructuralPartialEq for HttpCall
Auto Trait Implementations§
impl Forget for HttpCall
impl Freeze for HttpCall
impl Move for HttpCall
impl RefUnwindSafe for HttpCall
impl Send for HttpCall
impl Sync for HttpCall
impl Unpin for HttpCall
impl UnsafeUnpin for HttpCall
impl UnwindSafe for HttpCall
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