pub struct ErrorResponse {
pub error_type: ErrorType,
pub error_code: String,
pub message: String,
pub parameter: Option<String>,
pub details: Option<HashMap<String, Value>>,
pub request_id: Option<String>,
}Expand description
ErrorResponse : Standardized error response with detailed error information
Fields§
§error_type: ErrorType§error_code: StringMachine-readable error code identifier for programmatic handling
message: StringHuman-readable error message providing context about the error
parameter: Option<String>The specific parameter that caused the error (if applicable)
details: Option<HashMap<String, Value>>Additional contextual information about the error
request_id: Option<String>Unique request identifier for debugging and support purposes
Implementations§
Source§impl ErrorResponse
impl ErrorResponse
Trait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§fn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorResponse
impl Debug for ErrorResponse
Source§impl Default for ErrorResponse
impl Default for ErrorResponse
Source§fn default() -> ErrorResponse
fn default() -> ErrorResponse
Returns the “default value” for a type. Read more
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§fn eq(&self, other: &ErrorResponse) -> bool
fn eq(&self, other: &ErrorResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.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