pub struct FormError {
pub fields: Vec<String>,
pub message: String,
}Expand description
One whole-form error returned by an application form validator.
Mapped into ValidationDiagnostic::Form so form-level findings
accumulate in the same list as field-level ones. The message should
describe the rule without echoing submitted values.
Fields§
§fields: Vec<String>Stable IDs of the fields involved (may be empty for a global rule).
message: StringUser-facing description of the violated rule.
Implementations§
Trait Implementations§
impl Eq for FormError
impl StructuralPartialEq for FormError
Auto Trait Implementations§
impl Freeze for FormError
impl RefUnwindSafe for FormError
impl Send for FormError
impl Sync for FormError
impl Unpin for FormError
impl UnsafeUnpin for FormError
impl UnwindSafe for FormError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more