pub struct Report { /* private fields */ }Expand description
The outcome of one validation.
Implementations§
Source§impl Report
impl Report
Sourcepub fn unevaluated(&self) -> &[Unevaluated]
pub fn unevaluated(&self) -> &[Unevaluated]
Returns every constraint not evaluated, once per declaring
StructureDefinition, element and constraint, in that order.
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Answers whether no issue is an error or fatal.
An unevaluated constraint does not make the instance invalid; it makes
the answer incomplete, which Report::unevaluated states.
Sourcepub fn with_message(&self, id: MessageId) -> impl Iterator<Item = &Issue>
pub fn with_message(&self, id: MessageId) -> impl Iterator<Item = &Issue>
Returns the issues carrying id.
Trait Implementations§
impl Eq for Report
Source§impl From<&Report> for OperationOutcome
impl From<&Report> for OperationOutcome
Source§fn from(report: &Report) -> Self
fn from(report: &Report) -> Self
Builds the R4 OperationOutcome: one issue per Issue, then one
warning of type not-supported per Unevaluated.
Each issue carries its location in expression, its message in
details.text, and its message id as a details.coding in
MESSAGE_SYSTEM; a constraint key is a coding whose system is the
declaring StructureDefinition’s canonical. A report with neither
issues nor unevaluated constraints becomes one information issue,
because OperationOutcome.issue is 1..*
(https://hl7.org/fhir/R4/operationoutcome.html).
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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> 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.