Struct bdrck::http::recording::RecordedResponse
source · pub struct RecordedResponse {
pub metadata: ResponseMetadata,
pub body: RecordedBody,
}
Expand description
RecordedResponse represents a recorded HTTP response.
Fields
metadata: ResponseMetadata
The metadata about the response (e.g. status code, etc.).
body: RecordedBody
The response body.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RecordedResponse
impl<'de> Deserialize<'de> for RecordedResponse
sourcefn 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
sourceimpl<'a> From<&'a (ResponseMetadata, Vec<u8, Global>)> for RecordedResponse
impl<'a> From<&'a (ResponseMetadata, Vec<u8, Global>)> for RecordedResponse
sourcefn from(res: &'a (ResponseMetadata, Vec<u8>)) -> Self
fn from(res: &'a (ResponseMetadata, Vec<u8>)) -> Self
Converts to this type from the input type.
sourceimpl Serialize for RecordedResponse
impl Serialize for RecordedResponse
Auto Trait Implementations
impl RefUnwindSafe for RecordedResponse
impl Send for RecordedResponse
impl Sync for RecordedResponse
impl Unpin for RecordedResponse
impl UnwindSafe for RecordedResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more