pub enum ValidationSeverity {
Error,
Warning,
Info,
Success,
Custom(String),
}Expand description
Validation severity levels
Variants§
Error
Error level
Warning
Warning level
Info
Info level
Success
Success level
Custom(String)
Custom severity
Implementations§
Source§impl ValidationSeverity
impl ValidationSeverity
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Get the CSS class name for this validation severity
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Get the CSS value for this validation severity
Trait Implementations§
Source§impl Clone for ValidationSeverity
impl Clone for ValidationSeverity
Source§fn clone(&self) -> ValidationSeverity
fn clone(&self) -> ValidationSeverity
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 ValidationSeverity
impl Debug for ValidationSeverity
Source§impl<'de> Deserialize<'de> for ValidationSeverity
impl<'de> Deserialize<'de> for ValidationSeverity
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 ValidationSeverity
impl Display for ValidationSeverity
Source§impl Hash for ValidationSeverity
impl Hash for ValidationSeverity
Source§impl PartialEq for ValidationSeverity
impl PartialEq for ValidationSeverity
Source§impl Serialize for ValidationSeverity
impl Serialize for ValidationSeverity
impl Eq for ValidationSeverity
impl StructuralPartialEq for ValidationSeverity
Auto Trait Implementations§
impl Freeze for ValidationSeverity
impl RefUnwindSafe for ValidationSeverity
impl Send for ValidationSeverity
impl Sync for ValidationSeverity
impl Unpin for ValidationSeverity
impl UnwindSafe for ValidationSeverity
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.