pub struct Error {
pub type: String,
pub title: String,
pub status: i64,
pub detail: Option<String>,
pub correlation_id: Option<String>,
pub errors: Option<Vec<ErrorError>>,
}Expand description
RFC 9457 problem+json style error; correlationId for request tracing.
Fields§
§type: String§title: String§status: i64§detail: Option<String>§correlation_id: Option<String>Request ID for tracing
errors: Option<Vec<ErrorError>>Field-level validation errors (present on 422 responses)
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
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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