pub enum Validation {
Ok,
Warn(Issue),
Reject(Issue),
}Expand description
The result of validating a value against a field’s constraint at commit time.
Variants§
Ok
The value is fine — apply it.
Warn(Issue)
A soft warning (an open vocabulary’s unknown value, or a retired term); apply, but surface it.
Reject(Issue)
A hard rejection (a closed vocabulary’s unknown value); do not apply.
Implementations§
Trait Implementations§
Source§impl Clone for Validation
impl Clone for Validation
Source§fn clone(&self) -> Validation
fn clone(&self) -> Validation
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 Validation
impl Debug for Validation
impl Eq for Validation
Source§impl PartialEq for Validation
impl PartialEq for Validation
impl StructuralPartialEq for Validation
Auto Trait Implementations§
impl Freeze for Validation
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnsafeUnpin for Validation
impl UnwindSafe for Validation
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