pub struct GateioSpotTradeInner {
pub market: String,
pub time: DateTime<Utc>,
pub id: u64,
pub price: Decimal,
pub amount: Decimal,
pub side: Side,
}Expand description
GateioSpot real-time trade WebSocket message.
§Raw Payload Examples
See docs: https://www.gate.io/docs/developers/apiv4/ws/en/#public-trades-channel
{
"id": 309143071,
"create_time": 1606292218,
"create_time_ms": "1606292218213.4578",
"side": "sell",
"currency_pair": "GT_USDT",
"amount": "16.4700000000",
"price": "0.4705000000"
}Fields§
§market: String§time: DateTime<Utc>§id: u64§price: Decimal§amount: Decimal§side: SideTaker Side of the trade.
Trait Implementations§
Source§impl Clone for GateioSpotTradeInner
impl Clone for GateioSpotTradeInner
Source§fn clone(&self) -> GateioSpotTradeInner
fn clone(&self) -> GateioSpotTradeInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateioSpotTradeInner
impl Debug for GateioSpotTradeInner
Source§impl<'de> Deserialize<'de> for GateioSpotTradeInner
impl<'de> Deserialize<'de> for GateioSpotTradeInner
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
Source§impl PartialEq for GateioSpotTradeInner
impl PartialEq for GateioSpotTradeInner
Source§fn eq(&self, other: &GateioSpotTradeInner) -> bool
fn eq(&self, other: &GateioSpotTradeInner) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GateioSpotTradeInner
impl PartialOrd for GateioSpotTradeInner
Source§impl Serialize for GateioSpotTradeInner
impl Serialize for GateioSpotTradeInner
impl StructuralPartialEq for GateioSpotTradeInner
Auto Trait Implementations§
impl Freeze for GateioSpotTradeInner
impl RefUnwindSafe for GateioSpotTradeInner
impl Send for GateioSpotTradeInner
impl Sync for GateioSpotTradeInner
impl Unpin for GateioSpotTradeInner
impl UnsafeUnpin for GateioSpotTradeInner
impl UnwindSafe for GateioSpotTradeInner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more