pub enum ValidationResult {
Valid,
Invalid(String),
Warning(String),
Info(String),
Custom(String),
}Expand description
Validation result types
Variants§
Valid
Valid result
Invalid(String)
Invalid result
Warning(String)
Warning result
Info(String)
Info result
Custom(String)
Custom result
Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Get the CSS class name for this validation result
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Get the CSS value for this validation result
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationResult
impl Debug for ValidationResult
Source§impl<'de> Deserialize<'de> for ValidationResult
impl<'de> Deserialize<'de> for ValidationResult
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
Source§impl Display for ValidationResult
impl Display for ValidationResult
Source§impl Hash for ValidationResult
impl Hash for ValidationResult
Source§impl PartialEq for ValidationResult
impl PartialEq for ValidationResult
Source§impl Serialize for ValidationResult
impl Serialize for ValidationResult
impl Eq for ValidationResult
impl StructuralPartialEq for ValidationResult
Auto Trait 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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.