Skip to main content

Definitions

Trait Definitions 

Source
pub trait Definitions {
    // Required method
    fn structure(&self, url: &str) -> Option<Arc<Structure>>;

    // Provided method
    fn covers(&self, url: &str) -> bool { ... }
}
Expand description

Supplies structure definitions by canonical URL.

Required Methods§

Source

fn structure(&self, url: &str) -> Option<Arc<Structure>>

The structure at url, such as http://hl7.org/fhir/StructureDefinition/Patient or a version-specific http://hl7.org/fhir/4.0/StructureDefinition/Patient. A |version suffix may be present.

Provided Methods§

Source

fn covers(&self, url: &str) -> bool

Whether url belongs to a set of definitions this provider covers. When it does and structure finds nothing, the structure does not exist; otherwise the checker cannot tell and stays silent.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§