pub struct HttpFixture {
pub handler: HttpHandler,
pub request: HttpRequest,
pub expected_response: HttpExpectedResponse,
}Expand description
HTTP server test specification.
Fields§
§handler: HttpHandlerHandler/route definition.
request: HttpRequestThe HTTP request to send.
expected_response: HttpExpectedResponseExpected response.
Trait Implementations§
Source§impl Clone for HttpFixture
impl Clone for HttpFixture
Source§fn clone(&self) -> HttpFixture
fn clone(&self) -> HttpFixture
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 HttpFixture
impl Debug for HttpFixture
Source§impl<'de> Deserialize<'de> for HttpFixture
impl<'de> Deserialize<'de> for HttpFixture
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
Auto Trait Implementations§
impl Freeze for HttpFixture
impl RefUnwindSafe for HttpFixture
impl Send for HttpFixture
impl Sync for HttpFixture
impl Unpin for HttpFixture
impl UnsafeUnpin for HttpFixture
impl UnwindSafe for HttpFixture
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