pub struct ElementDefinitionConstraintElement {
pub id: Option<String>,
pub extension: Option<Vec<Extension>>,
pub key: Option<IdDt>,
pub requirements: Option<MarkdownDt>,
pub severity: Option<CodeDt>,
pub suppress: Option<BooleanDt>,
pub human: Option<StringDt>,
pub expression: Option<StringDt>,
pub source: Option<CanonicalDt>,
}
Fields§
§id: Option<String>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
key: Option<IdDt>
Target of ‘condition’ reference above
requirements: Option<MarkdownDt>
Why this constraint is necessary or appropriate
severity: Option<CodeDt>
error | warning
suppress: Option<BooleanDt>
Suppress warning or hint in profile
human: Option<StringDt>
Human description of constraint
expression: Option<StringDt>
FHIRPath expression of constraint
source: Option<CanonicalDt>
Reference to original source of constraint
Implementations§
Source§impl ElementDefinitionConstraintElement
impl ElementDefinitionConstraintElement
pub fn set_key<T: Into<IdDt>>(self, v: T) -> Self
pub fn set_requirements<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_severity<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_suppress<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_human<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_expression<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_source<T: Into<CanonicalDt>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ElementDefinitionConstraintElement
impl Clone for ElementDefinitionConstraintElement
Source§fn clone(&self) -> ElementDefinitionConstraintElement
fn clone(&self) -> ElementDefinitionConstraintElement
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 moreSource§impl Convert for ElementDefinitionConstraintElement
impl Convert for ElementDefinitionConstraintElement
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
Source§impl Default for ElementDefinitionConstraintElement
impl Default for ElementDefinitionConstraintElement
Source§fn default() -> ElementDefinitionConstraintElement
fn default() -> ElementDefinitionConstraintElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElementDefinitionConstraintElement
impl<'de> Deserialize<'de> for ElementDefinitionConstraintElement
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Executor for ElementDefinitionConstraintElement
impl Executor for ElementDefinitionConstraintElement
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for ElementDefinitionConstraintElement
Auto Trait Implementations§
impl Freeze for ElementDefinitionConstraintElement
impl RefUnwindSafe for ElementDefinitionConstraintElement
impl Send for ElementDefinitionConstraintElement
impl Sync for ElementDefinitionConstraintElement
impl Unpin for ElementDefinitionConstraintElement
impl UnwindSafe for ElementDefinitionConstraintElement
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