pub struct TradeResponse {
pub topic: String,
pub data: Vec<TradeData>,
pub ts: u64,
pub type_field: Option<String>,
}Expand description
Bybit WebSocket trade message
Fields§
§topic: StringTopic name for the trade stream
data: Vec<TradeData>List of trade data
ts: u64Server timestamp when the message was created
type_field: Option<String>Type field for the message (optional)
Trait Implementations§
Source§impl Clone for TradeResponse
impl Clone for TradeResponse
Source§fn clone(&self) -> TradeResponse
fn clone(&self) -> TradeResponse
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 TradeResponse
impl Debug for TradeResponse
Source§impl<'de> Deserialize<'de> for TradeResponse
impl<'de> Deserialize<'de> for TradeResponse
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 TradeResponse
impl RefUnwindSafe for TradeResponse
impl Send for TradeResponse
impl Sync for TradeResponse
impl Unpin for TradeResponse
impl UnwindSafe for TradeResponse
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