pub struct DocumentConstraint {
pub required_attributes: Vec<String>,
pub required_children: Vec<String>,
pub child_order: Vec<String>,
}Expand description
Document-level constraints
Fields§
§required_attributes: Vec<String>Required attributes on root element
required_children: Vec<String>Required child elements
child_order: Vec<String>Required order of children
Trait Implementations§
Source§impl Clone for DocumentConstraint
impl Clone for DocumentConstraint
Source§fn clone(&self) -> DocumentConstraint
fn clone(&self) -> DocumentConstraint
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 DocumentConstraint
impl Debug for DocumentConstraint
Source§impl Default for DocumentConstraint
impl Default for DocumentConstraint
Source§fn default() -> DocumentConstraint
fn default() -> DocumentConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentConstraint
impl<'de> Deserialize<'de> for DocumentConstraint
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
Auto Trait Implementations§
impl Freeze for DocumentConstraint
impl RefUnwindSafe for DocumentConstraint
impl Send for DocumentConstraint
impl Sync for DocumentConstraint
impl Unpin for DocumentConstraint
impl UnwindSafe for DocumentConstraint
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