pub struct CurrenciesDataItem {
pub code: String,
pub name: String,
pub symbol: String,
}
Expand description
Rust representation of single data item from Marketstack currencies
response.
Fields§
§code: String
3-letter code of the given currency.
name: String
Name of the given currency.
symbol: String
Text symbol of the given currency.
Trait Implementations§
Source§impl Clone for CurrenciesDataItem
impl Clone for CurrenciesDataItem
Source§fn clone(&self) -> CurrenciesDataItem
fn clone(&self) -> CurrenciesDataItem
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 CurrenciesDataItem
impl Debug for CurrenciesDataItem
Source§impl<'de> Deserialize<'de> for CurrenciesDataItem
impl<'de> Deserialize<'de> for CurrenciesDataItem
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
Auto Trait Implementations§
impl Freeze for CurrenciesDataItem
impl RefUnwindSafe for CurrenciesDataItem
impl Send for CurrenciesDataItem
impl Sync for CurrenciesDataItem
impl Unpin for CurrenciesDataItem
impl UnwindSafe for CurrenciesDataItem
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