pub struct CurrencyConversion {
pub description: Option<String>,
pub original_currency: String,
pub original_amount: i32,
pub scale: Option<Option<i32>>,
pub applied_rate: Option<f64>,
pub original_vats: Option<Vec<Vat>>,
}Expand description
CurrencyConversion : details on a currency conversion applied
Fields§
§description: Option<String>description of the conversion, e.g. rate, rounding rules, reference to rules
original_currency: StringISO 4217 currency codes
original_amount: i32amount in cents
scale: Option<Option<i32>>scale of the amount - the number of positions after the comma
applied_rate: Option<f64>§original_vats: Option<Vec<Vat>>Implementations§
Source§impl CurrencyConversion
impl CurrencyConversion
Sourcepub fn new(
original_currency: String,
original_amount: i32,
) -> CurrencyConversion
pub fn new( original_currency: String, original_amount: i32, ) -> CurrencyConversion
details on a currency conversion applied
Trait Implementations§
Source§impl Clone for CurrencyConversion
impl Clone for CurrencyConversion
Source§fn clone(&self) -> CurrencyConversion
fn clone(&self) -> CurrencyConversion
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 Debug for CurrencyConversion
impl Debug for CurrencyConversion
Source§impl Default for CurrencyConversion
impl Default for CurrencyConversion
Source§fn default() -> CurrencyConversion
fn default() -> CurrencyConversion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrencyConversion
impl<'de> Deserialize<'de> for CurrencyConversion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurrencyConversion
impl PartialEq for CurrencyConversion
Source§impl Serialize for CurrencyConversion
impl Serialize for CurrencyConversion
impl StructuralPartialEq for CurrencyConversion
Auto Trait Implementations§
impl Freeze for CurrencyConversion
impl RefUnwindSafe for CurrencyConversion
impl Send for CurrencyConversion
impl Sync for CurrencyConversion
impl Unpin for CurrencyConversion
impl UnwindSafe for CurrencyConversion
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