pub struct Element {
pub name: String,
pub xml_name: String,
pub namespace: Option<String>,
pub explicit_namespace: bool,
pub representation: Representation,
pub type_attribute: bool,
pub types: Vec<String>,
pub default_type: Option<String>,
pub many: bool,
pub choice_group: bool,
pub date_format: bool,
pub children: Vec<Element>,
}Expand description
An element of a type, in definition order.
Fields§
§name: StringThe name in the model, and the property name in JSON.
xml_name: StringThe name in XML.
namespace: Option<String>The namespace of the XML element: stated on the element, or the namespace of the structure that defines it.
explicit_namespace: boolWhether the namespace is stated on the element itself (an attribute is in no namespace unless it is).
representation: Representation§type_attribute: boolxsi:type states the type of the value (typeAttr).
types: Vec<String>Type codes or URLs.
default_type: Option<String>The type of a typeAttr element without xsi:type.
many: bool§choice_group: boolNot in the XML: the children appear directly in the parent, in any order.
date_format: boolA date and time in the model’s own lexical form (YYYYMMDDHHMMSS.UUUU[+|-ZZzz]).
children: Vec<Element>Elements declared inline, which take the place of the type’s own.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Element
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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