pub struct Error {
pub type: Type,
pub code: String,
pub detail: String,
pub documentation_url: String,
pub errors: Vec<Errors>,
}
Expand description
Represents an error.
Fields§
§type: Type
Type of error encountered.
code: String
Short snake case string that describes this error. Use to search the error reference.
detail: String
Some information about what went wrong as a human-readable string.
documentation_url: String
Link to a page in the error reference for this specific error.
errors: Vec<Errors>
List of validation errors. Only returned when there’s a validation error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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