pub struct ElementDef {
pub description: Option<String>,
pub content: Option<String>,
pub attributes: HashMap<String, AttributeDef>,
pub children: Vec<String>,
pub parents: Vec<String>,
pub required_children: Vec<String>,
pub min_occurs: Option<u32>,
pub max_occurs: Option<u32>,
}Expand description
Element definition within a profile
Fields§
§description: Option<String>Human-readable description
content: Option<String>Content model: “empty”, “text”, “inline”, “block”, “mixed”
attributes: HashMap<String, AttributeDef>Attribute definitions for this element
children: Vec<String>Allowed child elements
parents: Vec<String>Valid parent elements
required_children: Vec<String>Required child elements
min_occurs: Option<u32>Minimum occurrences
max_occurs: Option<u32>Maximum occurrences
Trait Implementations§
Source§impl Clone for ElementDef
impl Clone for ElementDef
Source§fn clone(&self) -> ElementDef
fn clone(&self) -> ElementDef
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 ElementDef
impl Debug for ElementDef
Source§impl<'de> Deserialize<'de> for ElementDef
impl<'de> Deserialize<'de> for ElementDef
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 ElementDef
impl RefUnwindSafe for ElementDef
impl Send for ElementDef
impl Sync for ElementDef
impl Unpin for ElementDef
impl UnwindSafe for ElementDef
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