pub struct Spread {
pub best_ask: Liq,
pub best_bid: Liq,
/* private fields */
}Expand description
Spread of depth with convininent calcs. Very suitable for a depth after depth_util::drop_worth
Fields§
§best_ask: Liq§best_bid: LiqImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spread
impl<'de> Deserialize<'de> for Spread
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 TryFrom<&Depth> for Spread
impl TryFrom<&Depth> for Spread
Source§type Error = SpreadError
type Error = SpreadError
The type returned in the event of a conversion error.
impl Copy for Spread
Auto Trait Implementations§
impl Freeze for Spread
impl RefUnwindSafe for Spread
impl Send for Spread
impl Sync for Spread
impl Unpin for Spread
impl UnwindSafe for Spread
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