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 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 Compare for SimpleQuantity
impl Compare for SimpleQuantity
Source§impl Convert for SimpleQuantity
impl Convert for SimpleQuantity
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 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
Source§impl Executor for SimpleQuantity
impl Executor for SimpleQuantity
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>
Source§impl Serialize for SimpleQuantity
impl Serialize for SimpleQuantity
impl DataType for SimpleQuantity
Auto Trait Implementations§
impl Freeze for SimpleQuantity
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