pub struct Coin {
pub id: String,
pub name: String,
pub symbol: String,
pub rank: isize,
pub is_new: bool,
pub is_active: bool,
pub coin_type: String,
}Expand description
Basic information about cryptocurrencies on coinpaprika.com
Fields§
§id: StringID of coin on coinpaprika.com
name: StringName of the cryptocurrency
symbol: StringSymbol of the cryptocurrency
rank: isizeCurrent ranking of the cryptocurrency. If is_active is false the rank is 0
is_new: boolFlag indicating if the currency was added within the last 5 days
is_active: boolFlag indicating if the currency is active, which means that we can calculate the current price and volume
coin_type: StringType of the cryptocurrency. Currently supported values are coin and token
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Coin
impl<'de> Deserialize<'de> for Coin
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 Coin
impl RefUnwindSafe for Coin
impl Send for Coin
impl Sync for Coin
impl Unpin for Coin
impl UnsafeUnpin for Coin
impl UnwindSafe for Coin
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