pub struct ErrorDetail {
pub code: i32,
pub details: Vec<ErrorField>,
pub message: String,
}Expand description
ErrorDetail
JSON schema
{
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"examples": [
40005
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"details": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorField"
}
},
"message": {
"examples": [
"Invalid wallet address format"
],
"type": "string"
}
}
}Fields§
§code: i32§details: Vec<ErrorField>§message: StringImplementations§
Source§impl ErrorDetail
impl ErrorDetail
pub fn builder() -> ErrorDetail
Trait Implementations§
Source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
Source§fn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
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 ErrorDetail
impl Debug for ErrorDetail
Source§impl<'de> Deserialize<'de> for ErrorDetail
impl<'de> Deserialize<'de> for ErrorDetail
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 From<&ErrorDetail> for ErrorDetail
impl From<&ErrorDetail> for ErrorDetail
Source§fn from(value: &ErrorDetail) -> Self
fn from(value: &ErrorDetail) -> Self
Converts to this type from the input type.
Source§impl From<ErrorDetail> for ErrorDetail
impl From<ErrorDetail> for ErrorDetail
Source§fn from(value: ErrorDetail) -> Self
fn from(value: ErrorDetail) -> Self
Converts to this type from the input type.
Source§impl Serialize for ErrorDetail
impl Serialize for ErrorDetail
Source§impl TryFrom<ErrorDetail> for ErrorDetail
impl TryFrom<ErrorDetail> for ErrorDetail
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ErrorDetail) -> Result<Self, ConversionError>
fn try_from(value: ErrorDetail) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnsafeUnpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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