pub struct Document {
pub json: Value,
pub root_type: String,
pub positions: HashMap<String, Position>,
pub issues: Vec<Issue>,
}Expand description
A document read from XML.
Fields§
§json: ValueThe content as JSON of the logical model: property names are the model’s element names,
attributes are primitives, the type xsi:type states is in "@type".
root_type: StringThe canonical URL of the root element’s type.
positions: HashMap<String, Position>Where each element is in the XML, by its path in the JSON (ClinicalDocument.component .structuredBody.component[2].section), the form the engine’s trace uses.
issues: Vec<Issue>What could not be read into the model: unknown elements and attributes, values that do not fit their type.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Document
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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