pub struct OrderBookEntry {
pub price: f64,
pub volume: i64,
pub order_count: i32,
}Expand description
摆盘数据项
Fields§
§price: f64§volume: i64§order_count: i32Implementations§
Source§impl OrderBookEntry
impl OrderBookEntry
pub fn from_proto(ob: &OrderBook) -> Self
Trait Implementations§
Source§impl Clone for OrderBookEntry
impl Clone for OrderBookEntry
Source§fn clone(&self) -> OrderBookEntry
fn clone(&self) -> OrderBookEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OrderBookEntry
impl RefUnwindSafe for OrderBookEntry
impl Send for OrderBookEntry
impl Sync for OrderBookEntry
impl Unpin for OrderBookEntry
impl UnwindSafe for OrderBookEntry
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