pub struct ErrorResponse {
pub code: Option<String>,
pub message: Option<String>,
pub details: Option<Box<Details>>,
pub detail: Option<Option<String>>,
pub error: Option<Box<Error>>,
}Expand description
ErrorResponse : Standardized error envelope returned across all HTTP transports.
Fields§
§code: Option<String>Ebb error taxonomy code
message: Option<String>Human-readable error explanation
details: Option<Box<Details>>§detail: Option<Option<String>>Error detail string matching FastAPI error convention
error: Option<Box<Error>>Implementations§
Source§impl ErrorResponse
impl ErrorResponse
Sourcepub fn new() -> ErrorResponse
pub fn new() -> ErrorResponse
Standardized error envelope returned across all HTTP transports.
Trait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl Default for ErrorResponse
impl Default for ErrorResponse
Source§impl<'de> Deserialize<'de> for ErrorResponse
impl<'de> Deserialize<'de> for ErrorResponse
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 ErrorResponse
impl PartialEq for ErrorResponse
Source§impl Serialize for ErrorResponse
impl Serialize for ErrorResponse
impl StructuralPartialEq for ErrorResponse
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnsafeUnpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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