pub struct CapturedResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Body,
}Expand description
One captured response.
Fields§
§status: u16§headers: Vec<(String, String)>Headers surviving [KEPT_RESPONSE_HEADERS].
body: BodyTrait Implementations§
Source§impl Clone for CapturedResponse
impl Clone for CapturedResponse
Source§fn clone(&self) -> CapturedResponse
fn clone(&self) -> CapturedResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapturedResponse
impl Debug for CapturedResponse
Source§impl<'de> Deserialize<'de> for CapturedResponse
impl<'de> Deserialize<'de> for CapturedResponse
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 PartialEq for CapturedResponse
impl PartialEq for CapturedResponse
Source§impl Serialize for CapturedResponse
impl Serialize for CapturedResponse
impl StructuralPartialEq for CapturedResponse
Auto Trait Implementations§
impl Freeze for CapturedResponse
impl RefUnwindSafe for CapturedResponse
impl Send for CapturedResponse
impl Sync for CapturedResponse
impl Unpin for CapturedResponse
impl UnsafeUnpin for CapturedResponse
impl UnwindSafe for CapturedResponse
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