Struct fhir_rs::datatype::complex::Expression
source · pub struct Expression {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub description: Option<StringDt>,
pub name: Option<CodeDt>,
pub language: Option<CodeDt>,
pub expression: Option<StringDt>,
pub reference: Option<UriDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
description: Option<StringDt>
Natural language description of the condition
name: Option<CodeDt>
Short name assigned to expression for reuse
language: Option<CodeDt>
text/cql | text/fhirpath | application/x-fhir-query | etc.
expression: Option<StringDt>
Expression in specified language
reference: Option<UriDt>
Where the expression is found
Implementations§
source§impl Expression
impl Expression
pub fn set_description<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_name<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_language<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_expression<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_reference<T: Into<UriDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for Expression
impl Clone for Expression
source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy 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 Debug for Expression
impl Debug for Expression
source§impl Default for Expression
impl Default for Expression
source§fn default() -> Expression
fn default() -> Expression
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Expression
impl Element for Expression
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for Expression
impl Serialize for Expression
Auto Trait Implementations§
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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