pub enum Type {
Unknown,
Node {
structure: Arc<Structure>,
path: Vec<String>,
},
}Expand description
The type of a value: a structure, or a backbone element inside one.
Variants§
Implementations§
Source§impl Type
impl Type
Sourcepub fn fhir_type(&self) -> Option<String>
pub fn fhir_type(&self) -> Option<String>
The FHIR type name, as fhirType() gives it: Patient, string, or BackboneElement for
an element declared inline.
pub fn structure(&self) -> Option<&Arc<Structure>>
Sourcepub fn is_resource(&self) -> bool
pub fn is_resource(&self) -> bool
Whether this is a resource (a resource structure itself, not an element of one).
pub fn is_primitive(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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