pub struct CoinbasePriceBook {
pub product_id: SmartString,
pub bids: Vec<CoinbasePriceLevel>,
pub asks: Vec<CoinbasePriceLevel>,
pub time: SmartString,
}Expand description
Price book with bids and asks
Fields§
§product_id: SmartStringProduct identifier for the trading pair
bids: Vec<CoinbasePriceLevel>List of bid price levels (buyers)
asks: Vec<CoinbasePriceLevel>List of ask price levels (sellers)
time: SmartStringISO 8601 timestamp of the price book snapshot
Trait Implementations§
Source§impl Clone for CoinbasePriceBook
impl Clone for CoinbasePriceBook
Source§fn clone(&self) -> CoinbasePriceBook
fn clone(&self) -> CoinbasePriceBook
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoinbasePriceBook
impl Debug for CoinbasePriceBook
Source§impl<'de> Deserialize<'de> for CoinbasePriceBook
impl<'de> Deserialize<'de> for CoinbasePriceBook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoinbasePriceBook
impl RefUnwindSafe for CoinbasePriceBook
impl Send for CoinbasePriceBook
impl Sync for CoinbasePriceBook
impl Unpin for CoinbasePriceBook
impl UnwindSafe for CoinbasePriceBook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more