pub enum PegValue {
Best,
Mid,
}Expand description
The different types of valid peg values.
Variants§
Best
The best Bid for a buy order and the best Ask for a sell order.
Mid
The mid-point price between the best bid and the best ask.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PegValue
impl<'de> Deserialize<'de> for PegValue
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 PegValue
impl RefUnwindSafe for PegValue
impl Send for PegValue
impl Sync for PegValue
impl Unpin for PegValue
impl UnwindSafe for PegValue
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