pub struct RestErrorResponse {
pub error: String,
pub message: String,
pub code: Option<i64>,
pub data: Option<Value>,
}Expand description
Structured REST error payload.
Fields§
§error: String§message: String§code: Option<i64>§data: Option<Value>Trait Implementations§
Source§impl Clone for RestErrorResponse
impl Clone for RestErrorResponse
Source§fn clone(&self) -> RestErrorResponse
fn clone(&self) -> RestErrorResponse
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 RestErrorResponse
impl Debug for RestErrorResponse
Source§impl<'de> Deserialize<'de> for RestErrorResponse
impl<'de> Deserialize<'de> for RestErrorResponse
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
Source§impl PartialEq for RestErrorResponse
impl PartialEq for RestErrorResponse
Source§fn eq(&self, other: &RestErrorResponse) -> bool
fn eq(&self, other: &RestErrorResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RestErrorResponse
impl Serialize for RestErrorResponse
impl StructuralPartialEq for RestErrorResponse
Auto Trait Implementations§
impl Freeze for RestErrorResponse
impl RefUnwindSafe for RestErrorResponse
impl Send for RestErrorResponse
impl Sync for RestErrorResponse
impl Unpin for RestErrorResponse
impl UnsafeUnpin for RestErrorResponse
impl UnwindSafe for RestErrorResponse
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