pub struct VolumeAtPrice {
pub price: f64,
pub volume: i64,
pub volume_at_bid: Option<i64>,
pub volume_at_ask: Option<i64>,
}Expand description
Volume at a specific price level
Fields§
§price: f64Price level
volume: i64Total volume at this price
volume_at_bid: Option<i64>Volume traded at bid
volume_at_ask: Option<i64>Volume traded at ask
Implementations§
Trait Implementations§
Source§impl Clone for VolumeAtPrice
impl Clone for VolumeAtPrice
Source§fn clone(&self) -> VolumeAtPrice
fn clone(&self) -> VolumeAtPrice
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 VolumeAtPrice
impl Debug for VolumeAtPrice
Source§impl Default for VolumeAtPrice
impl Default for VolumeAtPrice
Source§fn default() -> VolumeAtPrice
fn default() -> VolumeAtPrice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeAtPrice
impl<'de> Deserialize<'de> for VolumeAtPrice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VolumeAtPrice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VolumeAtPrice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VolumeAtPrice
impl PartialEq for VolumeAtPrice
Source§fn eq(&self, other: &VolumeAtPrice) -> bool
fn eq(&self, other: &VolumeAtPrice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VolumeAtPrice
impl Serialize for VolumeAtPrice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VolumeAtPrice
Auto Trait Implementations§
impl Freeze for VolumeAtPrice
impl RefUnwindSafe for VolumeAtPrice
impl Send for VolumeAtPrice
impl Sync for VolumeAtPrice
impl Unpin for VolumeAtPrice
impl UnsafeUnpin for VolumeAtPrice
impl UnwindSafe for VolumeAtPrice
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