pub struct Invariant {
pub key: String,
pub severity: Severity,
pub human: String,
pub expression: String,
pub xpath: Option<String>,
}Expand description
Invariant constraint from FHIR specification
This structure is shared between the validator and code generator. Generated resources embed these as static constants.
Fields§
§key: StringInvariant key (e.g., “pat-1”, “obs-3”)
severity: SeveritySeverity level
human: StringHuman-readable description
expression: StringFHIRPath expression to evaluate
xpath: Option<String>XPath expression (legacy, optional)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invariant
impl<'de> Deserialize<'de> for Invariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Invariant
impl StructuralPartialEq for Invariant
Auto Trait Implementations§
impl Freeze for Invariant
impl RefUnwindSafe for Invariant
impl Send for Invariant
impl Sync for Invariant
impl Unpin for Invariant
impl UnsafeUnpin for Invariant
impl UnwindSafe for Invariant
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