pub struct TrendingCrypto {
pub symbol: String,
pub name: String,
pub market_rank: u32,
pub galaxy_score: f64,
pub alt_rank: u32,
pub social_score: f64,
pub price_usd: f64,
pub price_change_24h: f64,
pub social_volume: u64,
pub social_volume_change: f64,
pub market_cap: u64,
pub volume_24h: u64,
}Expand description
Trending cryptocurrency with social metrics
Fields§
§symbol: StringCryptocurrency symbol
name: StringFull name of the cryptocurrency
market_rank: u32Current market rank
galaxy_score: f64Galaxy score (LunarCrush proprietary metric)
alt_rank: u32AltRank (alternative ranking metric)
Social score
price_usd: f64Price in USD
price_change_24h: f6424h price change percentage
Social volume
Social volume change percentage
market_cap: u64Market cap in USD
volume_24h: u6424h trading volume
Trait Implementations§
Source§impl Clone for TrendingCrypto
impl Clone for TrendingCrypto
Source§fn clone(&self) -> TrendingCrypto
fn clone(&self) -> TrendingCrypto
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 TrendingCrypto
impl Debug for TrendingCrypto
Source§impl<'de> Deserialize<'de> for TrendingCrypto
impl<'de> Deserialize<'de> for TrendingCrypto
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 JsonSchema for TrendingCrypto
impl JsonSchema for TrendingCrypto
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for TrendingCrypto
impl RefUnwindSafe for TrendingCrypto
impl Send for TrendingCrypto
impl Sync for TrendingCrypto
impl Unpin for TrendingCrypto
impl UnwindSafe for TrendingCrypto
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