pub struct RestTickerBidAsk {
pub price: Decimal,
pub whole_lot_volume: Decimal,
pub lot_volume: Decimal,
}
Expand description
Best bid or ask
Separate type needed for varying data format from REST API.
Fields§
§price: Decimal
§whole_lot_volume: Decimal
§lot_volume: Decimal
Trait Implementations§
Source§impl Clone for RestTickerBidAsk
impl Clone for RestTickerBidAsk
Source§fn clone(&self) -> RestTickerBidAsk
fn clone(&self) -> RestTickerBidAsk
Returns a copy 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 moreSource§impl Debug for RestTickerBidAsk
impl Debug for RestTickerBidAsk
Source§impl<'de> Deserialize<'de> for RestTickerBidAsk
impl<'de> Deserialize<'de> for RestTickerBidAsk
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 RestTickerBidAsk
impl PartialEq for RestTickerBidAsk
impl StructuralPartialEq for RestTickerBidAsk
Auto Trait Implementations§
impl Freeze for RestTickerBidAsk
impl RefUnwindSafe for RestTickerBidAsk
impl Send for RestTickerBidAsk
impl Sync for RestTickerBidAsk
impl Unpin for RestTickerBidAsk
impl UnwindSafe for RestTickerBidAsk
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