pub struct CurrencyInfoCollection {
pub currencies: Vec<CurrencyInfo>,
}Expand description
Collection of currency information
Fields§
§currencies: Vec<CurrencyInfo>List of currency information
Implementations§
Source§impl CurrencyInfoCollection
impl CurrencyInfoCollection
Sourcepub fn add(&mut self, info: CurrencyInfo)
pub fn add(&mut self, info: CurrencyInfo)
Add currency info
Sourcepub fn get(&self, currency: String) -> Option<&CurrencyInfo>
pub fn get(&self, currency: String) -> Option<&CurrencyInfo>
Get currency info by currency
Sourcepub fn enabled(&self) -> Vec<&CurrencyInfo>
pub fn enabled(&self) -> Vec<&CurrencyInfo>
Get enabled currencies
Sourcepub fn with_withdrawal(&self) -> Vec<&CurrencyInfo>
pub fn with_withdrawal(&self) -> Vec<&CurrencyInfo>
Get currencies with withdrawal support
Trait Implementations§
Source§impl Clone for CurrencyInfoCollection
impl Clone for CurrencyInfoCollection
Source§fn clone(&self) -> CurrencyInfoCollection
fn clone(&self) -> CurrencyInfoCollection
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 CurrencyInfoCollection
impl Debug for CurrencyInfoCollection
Source§impl Default for CurrencyInfoCollection
impl Default for CurrencyInfoCollection
Source§impl<'de> Deserialize<'de> for CurrencyInfoCollection
impl<'de> Deserialize<'de> for CurrencyInfoCollection
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 Display for CurrencyInfoCollection
impl Display for CurrencyInfoCollection
Source§impl PartialEq for CurrencyInfoCollection
impl PartialEq for CurrencyInfoCollection
Source§impl Serialize for CurrencyInfoCollection
impl Serialize for CurrencyInfoCollection
impl StructuralPartialEq for CurrencyInfoCollection
Auto Trait Implementations§
impl Freeze for CurrencyInfoCollection
impl RefUnwindSafe for CurrencyInfoCollection
impl Send for CurrencyInfoCollection
impl Sync for CurrencyInfoCollection
impl Unpin for CurrencyInfoCollection
impl UnwindSafe for CurrencyInfoCollection
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