#[non_exhaustive]pub struct HttpRefusal {
pub status: u16,
pub reason: Option<String>,
pub rejection_reason: Option<String>,
pub message: Option<String>,
pub error: Option<String>,
pub validation_errors: Option<Value>,
pub body: Value,
}Expand description
The decoded body of a refused (non-2xx) Server request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: u16§reason: Option<String>§rejection_reason: Option<String>§message: Option<String>§error: Option<String>§validation_errors: Option<Value>§body: ValueThe full JSON body, unchanged.
Trait Implementations§
Source§impl Clone for HttpRefusal
impl Clone for HttpRefusal
Source§fn clone(&self) -> HttpRefusal
fn clone(&self) -> HttpRefusal
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 HttpRefusal
impl Debug for HttpRefusal
Source§impl PartialEq for HttpRefusal
impl PartialEq for HttpRefusal
impl StructuralPartialEq for HttpRefusal
Auto Trait Implementations§
impl Freeze for HttpRefusal
impl RefUnwindSafe for HttpRefusal
impl Send for HttpRefusal
impl Sync for HttpRefusal
impl Unpin for HttpRefusal
impl UnwindSafe for HttpRefusal
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