pub struct MonetaryComponent {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub type_: Option<CodeDt>,
pub code: Option<CodeableConcept>,
pub factor: Option<DecimalDt>,
pub amount: Option<Money>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
type_: Option<CodeDt>
base | surcharge | deduction | discount | tax | informational
code: Option<CodeableConcept>
Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
factor: Option<DecimalDt>
Factor used for calculating this component
amount: Option<Money>
Explicit value amount to be used
Implementations§
Source§impl MonetaryComponent
impl MonetaryComponent
pub fn set_type_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_code(self, v: CodeableConcept) -> Self
pub fn set_factor<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_amount(self, v: Money) -> Self
Trait Implementations§
Source§impl Clone for MonetaryComponent
impl Clone for MonetaryComponent
Source§fn clone(&self) -> MonetaryComponent
fn clone(&self) -> MonetaryComponent
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 MonetaryComponent
impl Compare for MonetaryComponent
Source§impl Convert for MonetaryComponent
impl Convert for MonetaryComponent
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 MonetaryComponent
impl Debug for MonetaryComponent
Source§impl Default for MonetaryComponent
impl Default for MonetaryComponent
Source§fn default() -> MonetaryComponent
fn default() -> MonetaryComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MonetaryComponent
impl<'de> Deserialize<'de> for MonetaryComponent
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Element for MonetaryComponent
impl Element for MonetaryComponent
Source§impl Executor for MonetaryComponent
impl Executor for MonetaryComponent
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 MonetaryComponent
impl Serialize for MonetaryComponent
impl DataType for MonetaryComponent
Auto Trait Implementations§
impl Freeze for MonetaryComponent
impl RefUnwindSafe for MonetaryComponent
impl Send for MonetaryComponent
impl Sync for MonetaryComponent
impl Unpin for MonetaryComponent
impl UnwindSafe for MonetaryComponent
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