#[non_exhaustive]pub struct FieldError {
pub field: String,
pub code: String,
pub message: String,
}Expand description
One invalid field, from the server (error.fields[]) or local validation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: StringThe wire name: message, group_key, metadata.region, Idempotency-Key, body, …
code: Stringrequired, too_long, too_short, invalid_enum, invalid_format, out_of_range,
not_allowed, invalid_utf8 or requires_group_key.
message: StringA human-readable explanation.
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§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
impl Eq for FieldError
Source§impl PartialEq for FieldError
impl PartialEq for FieldError
impl StructuralPartialEq for FieldError
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnsafeUnpin 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