pub struct FieldError {
pub field: String,
pub code: String,
pub message: String,
pub params: Option<HashMap<String, Value>>,
}Expand description
A single field validation error.
Fields§
§field: StringThe field name that failed validation
code: StringThe validation rule code (e.g., “email”, “length”, “range”)
message: StringHuman-readable error message
params: Option<HashMap<String, Value>>Optional additional parameters (e.g., min/max values)
Implementations§
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§fn clone(&self) -> FieldError
fn clone(&self) -> FieldError
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 FieldError
impl Debug for FieldError
Source§impl<'de> Deserialize<'de> for FieldError
impl<'de> Deserialize<'de> for FieldError
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
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnwindSafe for FieldError
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