pub enum FxCurrency {
Native,
Fixed {
target: CurrencyCode,
},
}Variants§
Native
Keep each transaction’s native currency (value.currency or activity.default_currency).
Fixed
Convert everything to target currency with a placeholder 1:1 rate for now. (Real FX will be provided by a future iati-fx crate.)
Fields
§
target: CurrencyCodeTrait Implementations§
Source§impl Clone for FxCurrency
impl Clone for FxCurrency
Source§fn clone(&self) -> FxCurrency
fn clone(&self) -> FxCurrency
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 FxCurrency
impl Debug for FxCurrency
Source§impl<'de> Deserialize<'de> for FxCurrency
impl<'de> Deserialize<'de> for FxCurrency
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 FxCurrency
impl PartialEq for FxCurrency
Source§impl Serialize for FxCurrency
impl Serialize for FxCurrency
impl Eq for FxCurrency
impl StructuralPartialEq for FxCurrency
Auto Trait Implementations§
impl Freeze for FxCurrency
impl RefUnwindSafe for FxCurrency
impl Send for FxCurrency
impl Sync for FxCurrency
impl Unpin for FxCurrency
impl UnwindSafe for FxCurrency
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