pub enum MessageId {
Show 35 variants
NotAnObject,
UnknownResourceType,
ProfileTypeMismatch,
UnknownElement,
WrongJsonType,
WrongShape,
EmptyObject,
EmptyArray,
EmptyString,
NullValue,
MisalignedArrays,
DuplicateChoice,
ChoiceTypeNotAllowed,
MinCardinality,
MaxCardinality,
LexicalForm,
IntegerRange,
TooLong,
MaxLength,
FixedMismatch,
PatternMismatch,
UnknownExtension,
UnknownModifierExtension,
NotAnExtension,
RelativeExtensionUrl,
ModifierMismatch,
UnmatchedSliceItem,
SliceOrder,
OpenAtEnd,
OverlappingSlices,
UnresolvedReference,
TypeProfileMismatch,
ResourceTypeNotAllowed,
ConstraintUnevaluated,
AllOk,
}Expand description
The message ids of the validator, our own vocabulary.
Variants§
NotAnObject
The instance is no JSON object.
UnknownResourceType
resourceType is absent or names no R4 resource.
ProfileTypeMismatch
The profile constrains another resource type than the instance’s.
UnknownElement
A property the type does not define (json.html §2.6.2).
WrongJsonType
A value of the wrong JSON type for its element.
WrongShape
A repeating element written as a single value, or the reverse (json.html §2.6.2).
EmptyObject
An empty object (json.html §2.6.2).
EmptyArray
An empty array (json.html §2.6.2.1).
EmptyString
An empty string (json.html §2.6.2).
NullValue
A null where no aligned primitive array needs it (json.html §2.6.2.3).
MisalignedArrays
The value array and the _ array of a repeating primitive differ in
length (json.html §2.6.2.3).
DuplicateChoice
Two forms of one choice element.
ChoiceTypeNotAllowed
A choice form whose type the definition does not allow.
MinCardinality
Fewer occurrences than the minimum cardinality.
MaxCardinality
More occurrences than the maximum cardinality.
LexicalForm
A primitive value outside the lexical form of its type.
IntegerRange
An integer outside the range of its type (datatypes.html §2.24.0.1).
TooLong
A value longer than the length the primitive’s definition allows.
MaxLength
A value longer than the profile’s maxLength.
FixedMismatch
A value that differs from the profile’s fixed[x].
PatternMismatch
A value that does not contain the profile’s pattern[x].
UnknownExtension
An extension whose url the package set does not define.
UnknownModifierExtension
A modifier extension whose url the package set does not define
(extensibility.html §2.5.0.2).
NotAnExtension
An extension url that resolves to a StructureDefinition of another
type.
RelativeExtensionUrl
A relative url outside a complex extension (extensibility.html
§2.5.0.1).
ModifierMismatch
An extension in extension defined as a modifier, or one in
modifierExtension defined as none.
UnmatchedSliceItem
An item of a closed slicing that matches no slice (profiling.html §5.1.0.10).
SliceOrder
An item of an ordered slicing that comes before an item of a slice declared earlier.
OpenAtEnd
An item of a slicing with the rules openAtEnd that matches a slice
after an item that matched none.
OverlappingSlices
An item that matches more than one slice (profiling.html §5.1.0.11).
UnresolvedReference
A reference a discriminator resolves names no resource where it points.
TypeProfileMismatch
Content that conforms to none of the profiles its type names.
ResourceTypeNotAllowed
A resource of a type none of its element’s types names.
ConstraintUnevaluated
A constraint the validator does not evaluate.
AllOk
The instance raised no issue and every constraint was evaluated.
Implementations§
Trait Implementations§
impl Copy for MessageId
impl Eq for MessageId
Source§impl Ord for MessageId
impl Ord for MessageId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for MessageId
impl PartialOrd for MessageId
impl StructuralPartialEq for MessageId
Auto Trait Implementations§
impl Freeze for MessageId
impl RefUnwindSafe for MessageId
impl Send for MessageId
impl Sync for MessageId
impl Unpin for MessageId
impl UnsafeUnpin for MessageId
impl UnwindSafe for MessageId
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
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
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
WrappingSpan::make_wrapped to wrap an AST node in a span.