pub struct USCryptoOverview {Show 16 fields
pub name: String,
pub ticker: String,
pub currency: String,
pub all_time_high: String,
pub all_time_high_date: String,
pub all_time_low: String,
pub all_time_low_date: String,
pub ipo_date: String,
pub issue_price: String,
pub shares: String,
pub symbol: String,
pub base_asset: String,
pub official_web_address: String,
pub logo: String,
pub wiki_url: String,
pub profile: String,
}Expand description
Market overview for a single cryptocurrency.
Returned by crate::QuoteContext::us_crypto_overview.
Fields§
§name: StringFull name (e.g. "Bitcoin")
ticker: StringTicker symbol (e.g. "BTC")
currency: StringPricing currency
all_time_high: StringAll-time high price
all_time_high_date: StringAll-time high date
all_time_low: StringAll-time low price
all_time_low_date: StringAll-time low date
ipo_date: StringListing date
issue_price: StringIssue price
Circulating supply
symbol: StringUser-facing symbol (e.g. "BTCUSD.BKKT"), converted from the API’s
counter_id field (e.g. "VA/BKKT/BTCUSD").
base_asset: StringBase asset code (e.g. "BTC")
official_web_address: StringOfficial website URL
logo: StringLogo image URL
wiki_url: StringIn-app wiki URL
profile: StringMulti-language profile / description (JSON string)
Trait Implementations§
Source§impl Clone for USCryptoOverview
impl Clone for USCryptoOverview
Source§fn clone(&self) -> USCryptoOverview
fn clone(&self) -> USCryptoOverview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 USCryptoOverview
impl Debug for USCryptoOverview
Source§impl<'de> Deserialize<'de> for USCryptoOverview
impl<'de> Deserialize<'de> for USCryptoOverview
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 USCryptoOverview
impl RefUnwindSafe for USCryptoOverview
impl Send for USCryptoOverview
impl Sync for USCryptoOverview
impl Unpin for USCryptoOverview
impl UnsafeUnpin for USCryptoOverview
impl UnwindSafe for USCryptoOverview
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more