Struct surf_vcr::VcrResponse [−][src]
pub struct VcrResponse {
pub status: StatusCode,
pub version: Option<Version>,
pub headers: HashMap<String, Vec<String>>,
pub body: Body,
}
Expand description
Response to be recorded in cassettes.
You are unlikely to need to work with this directly except via VcrMiddleware::with_modify_response.
Fields
status: StatusCode
version: Option<Version>
headers: HashMap<String, Vec<String>>
body: Body
Trait Implementations
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VcrResponse
impl Send for VcrResponse
impl Sync for VcrResponse
impl Unpin for VcrResponse
impl UnwindSafe for VcrResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more