pub struct FhirPathConstraint {
pub key: String,
pub description: String,
pub expression: String,
pub severity: ErrorSeverity,
pub required: bool,
}Expand description
FHIRPath constraint for validation
Fields§
§key: StringConstraint identifier
description: StringHuman-readable description
expression: StringFHIRPath expression to evaluate
severity: ErrorSeveritySeverity if constraint fails
required: boolWhether this constraint is required
Implementations§
Source§impl FhirPathConstraint
impl FhirPathConstraint
Sourcepub fn new(key: String, description: String, expression: String) -> Self
pub fn new(key: String, description: String, expression: String) -> Self
Create a new constraint
Sourcepub fn with_severity(self, severity: ErrorSeverity) -> Self
pub fn with_severity(self, severity: ErrorSeverity) -> Self
Set severity level
Trait Implementations§
Source§impl Clone for FhirPathConstraint
impl Clone for FhirPathConstraint
Source§fn clone(&self) -> FhirPathConstraint
fn clone(&self) -> FhirPathConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FhirPathConstraint
impl RefUnwindSafe for FhirPathConstraint
impl Send for FhirPathConstraint
impl Sync for FhirPathConstraint
impl Unpin for FhirPathConstraint
impl UnwindSafe for FhirPathConstraint
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