pub enum Constraint {
Slicing,
Discriminator {
kind: String,
path: String,
},
DiscriminatorValueSet {
path: String,
value_set: String,
},
Invariant {
key: String,
severity: String,
},
Binding {
strength: String,
value_set: Option<String>,
},
TypeProfile {
profiles: Vec<String>,
},
TargetProfile {
profiles: Vec<String>,
},
ClaimedProfile {
url: String,
},
ExtensionContext,
}Expand description
A constraint of a StructureDefinition the validator met on an element of
the instance.
Variants§
Slicing
The slicing an element definition declares (https://hl7.org/fhir/R4/profiling.html#slicing).
Discriminator
One discriminator of a slicing (https://hl7.org/fhir/R4/profiling.html#discriminator).
Fields
DiscriminatorValueSet
A value or pattern discriminator whose slice is told apart by a
required binding.
Invariant
An invariant (https://hl7.org/fhir/R4/conformance-rules.html#constraints).
Fields
Binding
A terminology binding (https://hl7.org/fhir/R4/terminologies.html#strength).
Fields
TypeProfile
The profiles a type of the element names (type.profile).
TargetProfile
The profiles a reference’s target SHALL conform to
(type.targetProfile).
ClaimedProfile
A profile the instance claims in meta.profile.
ExtensionContext
The contexts an extension may be used in
(StructureDefinition.context).
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
impl Eq for Constraint
Source§impl Hash for Constraint
impl Hash for Constraint
Source§impl Ord for Constraint
impl Ord for Constraint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
Source§impl PartialOrd for Constraint
impl PartialOrd for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.