Struct coinbase_pro_rs::public::Public
source · [−]pub struct Public<Adapter> { /* private fields */ }
Implementations
sourceimpl<A> Public<A>
impl<A> Public<A>
pub fn new_with_keep_alive(uri: &str, keep_alive: bool) -> Self where
A: AdapterNew,
pub fn new(uri: &str) -> Self where
A: AdapterNew,
pub fn get_time(&self) -> A::Result where
A: Adapter<Time> + 'static,
pub fn get_products(&self) -> A::Result where
A: Adapter<Vec<Product>> + 'static,
pub fn get_product(&self, product_id: &str) -> A::Result where
A: Adapter<Product> + 'static,
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>,
pub fn get_ticker(&self, product_id: &str) -> A::Result where
A: Adapter<Ticker> + 'static,
pub fn get_trades(&self, product_id: &str) -> A::Result where
A: Adapter<Vec<Trade>> + 'static,
pub fn get_candles(
&self,
product_id: &str,
start: Option<DateTime>,
end: Option<DateTime>,
granularity: Granularity
) -> A::Result where
A: Adapter<Vec<Candle>> + 'static,
pub fn get_stats24h(&self, product_id: &str) -> A::Result where
A: Adapter<Stats24H> + 'static,
pub fn get_currencies(&self) -> A::Result where
A: Adapter<Vec<Currency>> + 'static,
Auto Trait Implementations
impl<Adapter> !RefUnwindSafe for Public<Adapter>
impl<Adapter> Send for Public<Adapter> where
Adapter: Send,
impl<Adapter> Sync for Public<Adapter> where
Adapter: Sync,
impl<Adapter> Unpin for Public<Adapter> where
Adapter: Unpin,
impl<Adapter> !UnwindSafe for Public<Adapter>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more