pub struct ErrorField {
pub field: String,
pub message: String,
}Expand description
ErrorField
JSON schema
{
"type": "object",
"required": [
"field",
"message"
],
"properties": {
"field": {
"description": "ENTITY.ERROR_FIELD.FIELD",
"examples": [
"walletAddress"
],
"type": "string"
},
"message": {
"description": "ENTITY.ERROR_FIELD.MESSAGE",
"examples": [
"Invalid wallet address format"
],
"type": "string"
}
}
}Fields§
§field: StringENTITY.ERROR_FIELD.FIELD
message: StringENTITY.ERROR_FIELD.MESSAGE
Implementations§
Source§impl ErrorField
impl ErrorField
pub fn builder() -> ErrorField
Trait Implementations§
Source§impl Clone for ErrorField
impl Clone for ErrorField
Source§fn clone(&self) -> ErrorField
fn clone(&self) -> ErrorField
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 ErrorField
impl Debug for ErrorField
Source§impl<'de> Deserialize<'de> for ErrorField
impl<'de> Deserialize<'de> for ErrorField
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<&ErrorField> for ErrorField
impl From<&ErrorField> for ErrorField
Source§fn from(value: &ErrorField) -> Self
fn from(value: &ErrorField) -> Self
Converts to this type from the input type.
Source§impl From<ErrorField> for ErrorField
impl From<ErrorField> for ErrorField
Source§fn from(value: ErrorField) -> Self
fn from(value: ErrorField) -> Self
Converts to this type from the input type.
Source§impl Serialize for ErrorField
impl Serialize for ErrorField
Source§impl TryFrom<ErrorField> for ErrorField
impl TryFrom<ErrorField> for ErrorField
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ErrorField) -> Result<Self, ConversionError>
fn try_from(value: ErrorField) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ErrorField
impl RefUnwindSafe for ErrorField
impl Send for ErrorField
impl Sync for ErrorField
impl Unpin for ErrorField
impl UnsafeUnpin for ErrorField
impl UnwindSafe for ErrorField
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