Skip to main content

StructureDefinitionRead

Trait StructureDefinitionRead 

Source
pub trait StructureDefinitionRead {
    type Element: ElementDefinitionRead;

    // Required methods
    fn url(&self) -> Option<&str>;
    fn version(&self) -> Option<&str>;
    fn type_name(&self) -> Option<&str>;
    fn base_definition(&self) -> Option<&str>;
    fn kind(&self) -> Option<&str>;
    fn is_abstract(&self) -> Option<bool>;
    fn derivation(&self) -> Option<&str>;
    fn snapshot(&self) -> Option<&[Self::Element]>;
    fn contexts(&self) -> Vec<ContextRead<'_>>;
    fn context_invariants(&self) -> Vec<&str>;
}
Expand description

The facts of a StructureDefinition a validator reads, the same in every release.

Required Associated Types§

Source

type Element: ElementDefinitionRead

The release’s ElementDefinition.

Required Methods§

Source

fn url(&self) -> Option<&str>

The canonical URL (StructureDefinition.url).

Source

fn version(&self) -> Option<&str>

The business version (StructureDefinition.version).

Source

fn type_name(&self) -> Option<&str>

The type the definition constrains or defines (StructureDefinition.type).

Source

fn base_definition(&self) -> Option<&str>

The definition this one derives from (StructureDefinition.baseDefinition).

Source

fn kind(&self) -> Option<&str>

primitive-type, complex-type, resource or logical (StructureDefinition.kind).

Source

fn is_abstract(&self) -> Option<bool>

Whether the type is abstract (StructureDefinition.abstract).

Source

fn derivation(&self) -> Option<&str>

specialization or constraint (StructureDefinition.derivation).

Source

fn snapshot(&self) -> Option<&[Self::Element]>

The snapshot’s elements in order, None without a snapshot (StructureDefinition.snapshot.element).

Source

fn contexts(&self) -> Vec<ContextRead<'_>>

The contexts an extension may be used in (StructureDefinition.context).

Source

fn context_invariants(&self) -> Vec<&str>

The FHIRPath rules about when an extension may be used (StructureDefinition.contextInvariant).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§