pub struct MetadataRegistry {
pub types: HashMap<String, TypeMetadata>,
}Expand description
Complete metadata registry for all FHIR types
Fields§
§types: HashMap<String, TypeMetadata>Implementations§
Source§impl MetadataRegistry
impl MetadataRegistry
pub fn new() -> Self
pub fn add_type(&mut self, type_metadata: TypeMetadata)
Sourcepub fn resolve_path(&self, path: &str) -> Option<&FhirFieldType>
pub fn resolve_path(&self, path: &str) -> Option<&FhirFieldType>
Resolve a path like “Patient.name.given” to its field type
Trait Implementations§
Source§impl Clone for MetadataRegistry
impl Clone for MetadataRegistry
Source§fn clone(&self) -> MetadataRegistry
fn clone(&self) -> MetadataRegistry
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 MetadataRegistry
impl Debug for MetadataRegistry
Source§impl Default for MetadataRegistry
impl Default for MetadataRegistry
Source§impl<'de> Deserialize<'de> for MetadataRegistry
impl<'de> Deserialize<'de> for MetadataRegistry
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 MetadataRegistry
impl RefUnwindSafe for MetadataRegistry
impl Send for MetadataRegistry
impl Sync for MetadataRegistry
impl Unpin for MetadataRegistry
impl UnsafeUnpin for MetadataRegistry
impl UnwindSafe for MetadataRegistry
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