pub enum ConversionType {
SameCurrency,
Direct,
Cross {
via_currency: String,
},
}Expand description
Type of conversion performed
Variants§
SameCurrency
Same currency (no conversion needed)
Direct
Direct conversion (both currencies available in rates)
Cross
Cross conversion via base currency
Trait Implementations§
Source§impl Clone for ConversionType
impl Clone for ConversionType
Source§fn clone(&self) -> ConversionType
fn clone(&self) -> ConversionType
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 ConversionType
impl Debug for ConversionType
Source§impl<'de> Deserialize<'de> for ConversionType
impl<'de> Deserialize<'de> for ConversionType
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 ConversionType
impl PartialEq for ConversionType
Source§impl Serialize for ConversionType
impl Serialize for ConversionType
impl StructuralPartialEq for ConversionType
Auto Trait Implementations§
impl Freeze for ConversionType
impl RefUnwindSafe for ConversionType
impl Send for ConversionType
impl Sync for ConversionType
impl Unpin for ConversionType
impl UnwindSafe for ConversionType
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