pub enum ValidationState {
Valid,
MissingRequiredField(String),
}Expand description
Validation state for form submission.
Variants§
Valid
Form values are valid enough to submit.
MissingRequiredField(String)
A required field has no value.
Trait Implementations§
Source§impl Clone for ValidationState
impl Clone for ValidationState
Source§fn clone(&self) -> ValidationState
fn clone(&self) -> ValidationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationState
impl Debug for ValidationState
Source§impl PartialEq for ValidationState
impl PartialEq for ValidationState
Source§fn eq(&self, other: &ValidationState) -> bool
fn eq(&self, other: &ValidationState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ValidationState
impl StructuralPartialEq for ValidationState
Auto Trait Implementations§
impl Freeze for ValidationState
impl RefUnwindSafe for ValidationState
impl Send for ValidationState
impl Sync for ValidationState
impl Unpin for ValidationState
impl UnsafeUnpin for ValidationState
impl UnwindSafe for ValidationState
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