pub struct HttpResponseExpectations {
pub body: bool,
pub bearer: bool,
pub json_body: bool,
pub status_code: u16,
}Expand description
The expectations set by methods such as discover, token grant, callback etc…
Fields§
§body: boolWhether or not to expect body with the response
bearer: boolSpecifies if the request is using bearer auth, and checks for bearer token related errors
json_body: boolSpecifies if the response should be of type json and validates it
status_code: u16Expected status code from the server
Trait Implementations§
Source§impl Clone for HttpResponseExpectations
impl Clone for HttpResponseExpectations
Source§fn clone(&self) -> HttpResponseExpectations
fn clone(&self) -> HttpResponseExpectations
Returns a copy of the value. Read more
1.0.0 · 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 HttpResponseExpectations
impl Debug for HttpResponseExpectations
impl Copy for HttpResponseExpectations
Auto Trait Implementations§
impl Freeze for HttpResponseExpectations
impl RefUnwindSafe for HttpResponseExpectations
impl Send for HttpResponseExpectations
impl Sync for HttpResponseExpectations
impl Unpin for HttpResponseExpectations
impl UnwindSafe for HttpResponseExpectations
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