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§
Sourcetype Element: ElementDefinitionRead
type Element: ElementDefinitionRead
The release’s ElementDefinition.
Required Methods§
Sourcefn type_name(&self) -> Option<&str>
fn type_name(&self) -> Option<&str>
The type the definition constrains or defines
(StructureDefinition.type).
Sourcefn base_definition(&self) -> Option<&str>
fn base_definition(&self) -> Option<&str>
The definition this one derives from
(StructureDefinition.baseDefinition).
Sourcefn kind(&self) -> Option<&str>
fn kind(&self) -> Option<&str>
primitive-type, complex-type, resource or logical
(StructureDefinition.kind).
Sourcefn is_abstract(&self) -> Option<bool>
fn is_abstract(&self) -> Option<bool>
Whether the type is abstract (StructureDefinition.abstract).
Sourcefn derivation(&self) -> Option<&str>
fn derivation(&self) -> Option<&str>
specialization or constraint (StructureDefinition.derivation).
Sourcefn snapshot(&self) -> Option<&[Self::Element]>
fn snapshot(&self) -> Option<&[Self::Element]>
The snapshot’s elements in order, None without a snapshot
(StructureDefinition.snapshot.element).
Sourcefn contexts(&self) -> Vec<ContextRead<'_>>
fn contexts(&self) -> Vec<ContextRead<'_>>
The contexts an extension may be used in
(StructureDefinition.context).
Sourcefn context_invariants(&self) -> Vec<&str>
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".