pub struct ElementValidationConfig {
pub required_attributes: IndexSet<QName>,
pub forbidden_attributes: IndexSet<QName>,
pub custom_rules: IndexMap<QName, Vec<ValidationRule>>,
}
Expand description
Element-specific validation configuration
Fields§
§required_attributes: IndexSet<QName>
Required attributes for this element
forbidden_attributes: IndexSet<QName>
Forbidden attributes for this element
custom_rules: IndexMap<QName, Vec<ValidationRule>>
Custom validation rules
Trait Implementations§
Source§impl Clone for ElementValidationConfig
impl Clone for ElementValidationConfig
Source§fn clone(&self) -> ElementValidationConfig
fn clone(&self) -> ElementValidationConfig
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 ElementValidationConfig
impl Debug for ElementValidationConfig
Source§impl<'de> Deserialize<'de> for ElementValidationConfig
impl<'de> Deserialize<'de> for ElementValidationConfig
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 PartialEq for ElementValidationConfig
impl PartialEq for ElementValidationConfig
Source§impl Serialize for ElementValidationConfig
impl Serialize for ElementValidationConfig
impl Eq for ElementValidationConfig
impl StructuralPartialEq for ElementValidationConfig
Auto Trait Implementations§
impl Freeze for ElementValidationConfig
impl RefUnwindSafe for ElementValidationConfig
impl Send for ElementValidationConfig
impl Sync for ElementValidationConfig
impl Unpin for ElementValidationConfig
impl UnwindSafe for ElementValidationConfig
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§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.