Struct fhir_rs::datatype::complex::SimpleQuantity
source · pub struct SimpleQuantity {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub value: Option<DecimalDt>,
pub comparator: Option<CodeDt>,
pub unit: Option<StringDt>,
pub system: Option<UriDt>,
pub code: Option<CodeDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
value: Option<DecimalDt>
Numerical value (with implicit precision)
comparator: Option<CodeDt>
< | <= | >= | > | ad - how to understand the value
unit: Option<StringDt>
Unit representation
system: Option<UriDt>
System that defines coded unit form
code: Option<CodeDt>
Coded form of the unit
Implementations§
source§impl SimpleQuantity
impl SimpleQuantity
pub fn set_value<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_comparator<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_unit<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_system<T: Into<UriDt>>(self, v: T) -> Self
pub fn set_code<T: Into<CodeDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for SimpleQuantity
impl Clone for SimpleQuantity
source§fn clone(&self) -> SimpleQuantity
fn clone(&self) -> SimpleQuantity
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 SimpleQuantity
impl Debug for SimpleQuantity
source§impl Default for SimpleQuantity
impl Default for SimpleQuantity
source§fn default() -> SimpleQuantity
fn default() -> SimpleQuantity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SimpleQuantity
impl<'de> Deserialize<'de> for SimpleQuantity
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for SimpleQuantity
impl Element for SimpleQuantity
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 SimpleQuantity
impl Serialize for SimpleQuantity
Auto Trait Implementations§
impl RefUnwindSafe for SimpleQuantity
impl Send for SimpleQuantity
impl Sync for SimpleQuantity
impl Unpin for SimpleQuantity
impl UnwindSafe for SimpleQuantity
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