pub struct ErrorCause {
pub caused_by: Option<Box<ErrorCause>>,
pub reason: Option<String>,
pub root_cause: Option<Vec<Box<ErrorCause>>>,
pub suppressed: Option<Vec<Box<ErrorCause>>>,
pub type: String,
pub stack_trace: Option<String>,
}Fields§
§caused_by: Option<Box<ErrorCause>>§reason: Option<String>A human-readable explanation of the error, in English.
root_cause: Option<Vec<Box<ErrorCause>>>§suppressed: Option<Vec<Box<ErrorCause>>>§type: StringThe type of error.
stack_trace: Option<String>The server stack trace, present only if the error_trace=true parameter was sent with the request.
Implementations§
Source§impl ErrorCause
impl ErrorCause
pub fn new(type: String) -> ErrorCause
Trait Implementations§
Source§impl Clone for ErrorCause
impl Clone for ErrorCause
Source§fn clone(&self) -> ErrorCause
fn clone(&self) -> ErrorCause
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 ErrorCause
impl Debug for ErrorCause
Source§impl Default for ErrorCause
impl Default for ErrorCause
Source§fn default() -> ErrorCause
fn default() -> ErrorCause
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorCause
impl<'de> Deserialize<'de> for ErrorCause
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 ErrorCause
impl PartialEq for ErrorCause
Source§impl Serialize for ErrorCause
impl Serialize for ErrorCause
impl StructuralPartialEq for ErrorCause
Auto Trait Implementations§
impl Freeze for ErrorCause
impl RefUnwindSafe for ErrorCause
impl Send for ErrorCause
impl Sync for ErrorCause
impl Unpin for ErrorCause
impl UnwindSafe for ErrorCause
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