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

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

Implementations

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_product(&self, product_id: &str) -> A::Result where
    A: Adapter<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> !RefUnwindSafe for Public<Adapter>[src]

impl<Adapter> Send for Public<Adapter> where
    Adapter: Send
[src]

impl<Adapter> Sync for Public<Adapter> where
    Adapter: Sync
[src]

impl<Adapter> Unpin for Public<Adapter> where
    Adapter: Unpin
[src]

impl<Adapter> !UnwindSafe for Public<Adapter>[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,