pub enum ResponsePolicyError {
UnexpectedStatus,
BodyTooLarge,
MissingBody,
ForbiddenBody,
MissingContentType,
UnexpectedContentType,
ForbiddenContentType,
}Expand description
Response rejected before provider decoding.
Variants§
UnexpectedStatus
The response status is not an expected success status.
BodyTooLarge
The initialized body exceeds the operation’s admitted limit.
MissingBody
A required response body is empty.
ForbiddenBody
A response body was supplied when forbidden.
MissingContentType
A required response content type is absent.
UnexpectedContentType
The supplied content type is not accepted.
ForbiddenContentType
A content type was supplied when forbidden.
Trait Implementations§
Source§impl Clone for ResponsePolicyError
impl Clone for ResponsePolicyError
Source§fn clone(&self) -> ResponsePolicyError
fn clone(&self) -> ResponsePolicyError
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 moreimpl Copy for ResponsePolicyError
Source§impl Debug for ResponsePolicyError
impl Debug for ResponsePolicyError
Source§impl Display for ResponsePolicyError
impl Display for ResponsePolicyError
impl Eq for ResponsePolicyError
Source§impl Error for ResponsePolicyError
impl Error for ResponsePolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ResponsePolicyError
impl PartialEq for ResponsePolicyError
impl StructuralPartialEq for ResponsePolicyError
Auto Trait Implementations§
impl Freeze for ResponsePolicyError
impl RefUnwindSafe for ResponsePolicyError
impl Send for ResponsePolicyError
impl Sync for ResponsePolicyError
impl Unpin for ResponsePolicyError
impl UnsafeUnpin for ResponsePolicyError
impl UnwindSafe for ResponsePolicyError
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