pub struct ErrorObject<M = Value> {
pub id: String,
pub links: HashMap<String, Link>,
pub status: String,
pub title: String,
pub detail: String,
pub source: Source,
pub meta: Option<M>,
}Fields§
§id: String§links: HashMap<String, Link>§status: String§title: String§detail: String§source: Source§meta: Option<M>Trait Implementations§
Source§impl<M: Clone> Clone for ErrorObject<M>
impl<M: Clone> Clone for ErrorObject<M>
Source§fn clone(&self) -> ErrorObject<M>
fn clone(&self) -> ErrorObject<M>
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<M: Debug> Debug for ErrorObject<M>
impl<M: Debug> Debug for ErrorObject<M>
Source§impl<M: Default> Default for ErrorObject<M>
impl<M: Default> Default for ErrorObject<M>
Source§fn default() -> ErrorObject<M>
fn default() -> ErrorObject<M>
Returns the “default value” for a type. Read more
Source§impl<'de, M> Deserialize<'de> for ErrorObject<M>where
M: Deserialize<'de> + Default,
impl<'de, M> Deserialize<'de> for ErrorObject<M>where
M: Deserialize<'de> + Default,
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
Auto Trait Implementations§
impl<M> Freeze for ErrorObject<M>where
M: Freeze,
impl<M> RefUnwindSafe for ErrorObject<M>where
M: RefUnwindSafe,
impl<M> Send for ErrorObject<M>where
M: Send,
impl<M> Sync for ErrorObject<M>where
M: Sync,
impl<M> Unpin for ErrorObject<M>where
M: Unpin,
impl<M> UnsafeUnpin for ErrorObject<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for ErrorObject<M>where
M: UnwindSafe,
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