pub struct FakeResponse {
pub status: Status,
pub headers: Headers,
pub body: Vec<u8>,
}Expand description
A scripted answer.
Fields§
§status: Status§headers: Headers§body: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for FakeResponse
impl Clone for FakeResponse
Source§fn clone(&self) -> FakeResponse
fn clone(&self) -> FakeResponse
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 moreAuto Trait Implementations§
impl Freeze for FakeResponse
impl RefUnwindSafe for FakeResponse
impl Send for FakeResponse
impl Sync for FakeResponse
impl Unpin for FakeResponse
impl UnsafeUnpin for FakeResponse
impl UnwindSafe for FakeResponse
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