pub struct CoinbaseTrade {
pub trade_id: SmartString,
pub product_id: SmartString,
pub price: SmartString,
pub size: SmartString,
pub time: SmartString,
pub side: SmartString,
pub bid: SmartString,
pub ask: SmartString,
}Expand description
Trade data
Fields§
§trade_id: SmartStringUnique identifier for the trade
product_id: SmartStringProduct identifier for the trading pair
price: SmartStringPrice at which the trade was executed
size: SmartStringSize of the trade
time: SmartStringISO 8601 timestamp when the trade occurred
side: SmartStringTrade side: “BUY” or “SELL”
bid: SmartStringBest bid price at the time of the trade
ask: SmartStringBest ask price at the time of the trade
Trait Implementations§
Source§impl Clone for CoinbaseTrade
impl Clone for CoinbaseTrade
Source§fn clone(&self) -> CoinbaseTrade
fn clone(&self) -> CoinbaseTrade
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 CoinbaseTrade
impl Debug for CoinbaseTrade
Source§impl<'de> Deserialize<'de> for CoinbaseTrade
impl<'de> Deserialize<'de> for CoinbaseTrade
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 CoinbaseTrade
impl RefUnwindSafe for CoinbaseTrade
impl Send for CoinbaseTrade
impl Sync for CoinbaseTrade
impl Unpin for CoinbaseTrade
impl UnwindSafe for CoinbaseTrade
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