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
pub fn new(uri: &str) -> Self
pub fn get_time(&self) -> A::Resultwhere
A: Adapter<Time> + 'static,
pub fn get_products(&self) -> A::Resultwhere
A: Adapter<Vec<Product>> + 'static,
pub fn get_book<T>(&self, product_id: &str) -> A::Resultwhere
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::Resultwhere
A: Adapter<Ticker> + 'static,
pub fn get_trades(&self, product_id: &str) -> A::Resultwhere
A: Adapter<Vec<Trade>> + 'static,
pub fn get_candles(
&self,
product_id: &str,
start: Option<DateTime>,
end: Option<DateTime>,
granularity: Granularity
) -> A::Resultwhere
A: Adapter<Vec<Candle>> + 'static,
pub fn get_stats24h(&self, product_id: &str) -> A::Resultwhere
A: Adapter<Stats24H> + 'static,
pub fn get_currencies(&self) -> A::Resultwhere
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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