[][src]Struct coinbase_pro_rs::public::Public

pub struct Public<Adapter> { /* fields omitted */ }

Methods

impl<A> Public<A>[src]

pub fn new_with_keep_alive(uri: &str, keep_alive: bool) -> Self where
    A: AdapterNew
[src]

pub fn new(uri: &str) -> Self where
    A: AdapterNew
[src]

pub fn get_time(&self) -> A::Result where
    A: Adapter<Time> + 'static, 
[src]

pub fn get_products(&self) -> A::Result where
    A: Adapter<Vec<Product>> + 'static, 
[src]

pub fn get_book<T>(&self, product_id: &str) -> A::Result where
    A: Adapter<Book<T>> + 'static,
    T: BookLevel + Debug + 'static,
    T: Send,
    T: for<'de> Deserialize<'de>, 
[src]

pub fn get_ticker(&self, product_id: &str) -> A::Result where
    A: Adapter<Ticker> + 'static, 
[src]

pub fn get_trades(&self, product_id: &str) -> A::Result where
    A: Adapter<Vec<Trade>> + 'static, 
[src]

pub fn get_candles(
    &self,
    product_id: &str,
    start: Option<DateTime>,
    end: Option<DateTime>,
    granularity: Granularity
) -> A::Result where
    A: Adapter<Vec<Candle>> + 'static, 
[src]

pub fn get_stats24h(&self, product_id: &str) -> A::Result where
    A: Adapter<Stats24H> + 'static, 
[src]

pub fn get_currencies(&self) -> A::Result where
    A: Adapter<Vec<Currency>> + 'static, 
[src]

Auto Trait Implementations

impl<Adapter> Send for Public<Adapter> where
    Adapter: Send

impl<Adapter> Sync for Public<Adapter> where
    Adapter: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Erased for T

impl<T> Same for T

type Output = T

Should always be Self