Struct restest::request::RequestResult [−][src]
pub struct RequestResult { /* fields omitted */ }
Expand description
The data returned by the server once the request is performed.
This datatype is meant for intermediary representation. It can be converted
to a concrete type by calling RequestResult::expect_status
.
Implementations
Checks if the response status meets an expected status code and convert the body to a concrete type.
This method uses serde
internally, so the output type must implement
DeserializeOwned
.
Panics
This method panics if the server response status is not equal to
status
or if the body can not be deserialized to the specified type.
Auto Trait Implementations
impl !RefUnwindSafe for RequestResult
impl Send for RequestResult
impl Sync for RequestResult
impl Unpin for RequestResult
impl !UnwindSafe for RequestResult
Blanket Implementations
Mutably borrows from an owned value. Read more
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