[][src]Struct coingecko::SimplePriceReq

pub struct SimplePriceReq {
    pub ids: String,
    pub vs_currencies: String,
    pub include_market_cap: bool,
    pub include_24hr_vol: bool,
    pub include_24hr_change: bool,
    pub include_last_updated_at: bool,
}

Fields

ids: String

ids of coins, comma-separated

vs_currencies: String

ids of currency pairs, comma-separated

include_market_cap: boolinclude_24hr_vol: boolinclude_24hr_change: boolinclude_last_updated_at: bool

Implementations

impl SimplePriceReq[src]

pub fn include_market_cap(self) -> Self[src]

Sets the include_market_cap field of this struct.

pub fn include_24hr_vol(self) -> Self[src]

Sets the include_24hr_vol field of this struct.

pub fn include_24hr_change(self) -> Self[src]

Sets the include_24hr_change field of this struct.

pub fn include_last_updated_at(self) -> Self[src]

Sets the include_last_updated_at field of this struct.

impl SimplePriceReq[src]

pub fn new(ids: String, vs_currencies: String) -> Self[src]

pub fn query(&self) -> String[src]

Trait Implementations

impl Default for SimplePriceReq[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]