Enum ValidationResult
enum ValidationResult
Input validation result
Variants
-
Incomplete Incomplete input
-
Invalid(Option<String>) Validation fails with an optional error message. User must fix the input.
-
Valid(Option<String>) Validation succeeds with an optional message
Implementations
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
impl<T> Any for ValidationResult
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ValidationResult
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ValidationResult
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for ValidationResult
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for ValidationResult
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ValidationResult
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ValidationResult
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>