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