pub struct ErrorObject {
pub code: Option<String>,
pub detail: Option<String>,
pub id: Option<String>,
pub source: Option<Box<ErrorObjectSource>>,
pub status: Option<String>,
}Fields§
§code: Option<String>application-specific error code
detail: Option<String>human-readable explanation specific to this occurrence of the problem
id: Option<String>unique identifier for this particular occurrence of the problem
source: Option<Box<ErrorObjectSource>>§status: Option<String>HTTP status code applicable to this problem
Implementations§
Source§impl ErrorObject
impl ErrorObject
pub fn new() -> ErrorObject
Trait Implementations§
Source§impl Clone for ErrorObject
impl Clone for ErrorObject
Source§fn clone(&self) -> ErrorObject
fn clone(&self) -> ErrorObject
Returns a duplicate 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 ErrorObject
impl Debug for ErrorObject
Source§impl Default for ErrorObject
impl Default for ErrorObject
Source§fn default() -> ErrorObject
fn default() -> ErrorObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorObjectwhere
ErrorObject: Default,
impl<'de> Deserialize<'de> for ErrorObjectwhere
ErrorObject: 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
Source§impl PartialEq for ErrorObject
impl PartialEq for ErrorObject
Source§impl Serialize for ErrorObject
impl Serialize for ErrorObject
impl StructuralPartialEq for ErrorObject
Auto Trait Implementations§
impl Freeze for ErrorObject
impl RefUnwindSafe for ErrorObject
impl Send for ErrorObject
impl Sync for ErrorObject
impl Unpin for ErrorObject
impl UnwindSafe for ErrorObject
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