pub struct Element {
pub types: Vec<String>,
pub choices: Vec<String>,
pub array: bool,
pub children: Arc<BTreeMap<String, Element>>,
pub content_reference: Option<(String, Vec<String>)>,
pub choice_of: Option<String>,
pub index: Option<usize>,
}Expand description
An element of a structure.
Fields§
§types: Vec<String>Type codes or URLs. Several for a choice element (value[x]).
choices: Vec<String>For a choice element, the concrete element names (valueString, …).
array: boolRepeats (max > 1).
children: Arc<BTreeMap<String, Element>>Inline child elements of a backbone element, shared so an element is cheap to copy.
content_reference: Option<(String, Vec<String>)>A content reference to another element: structure URL and element path.
choice_of: Option<String>For a concrete choice element (valueString), the choice it belongs to (value).
index: Option<usize>Position in the structure’s element order, for writing elements in definition order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
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