pub struct PriceBucket {
pub price: Option<Decimal>,
pub liquidity: Option<Decimal>,
}Expand description
A PriceBucket represents a price available for an amount of liquidity
Fields§
§price: Option<Decimal>The Price offered by the PriceBucket
liquidity: Option<Decimal>The amount of liquidity offered by the PriceBucket
Trait Implementations§
Source§impl Clone for PriceBucket
impl Clone for PriceBucket
Source§impl Debug for PriceBucket
impl Debug for PriceBucket
Source§impl<'de> Deserialize<'de> for PriceBucket
impl<'de> Deserialize<'de> for PriceBucket
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 PriceBucket
impl PartialEq for PriceBucket
Source§impl Serialize for PriceBucket
impl Serialize for PriceBucket
impl StructuralPartialEq for PriceBucket
Auto Trait Implementations§
impl Freeze for PriceBucket
impl RefUnwindSafe for PriceBucket
impl Send for PriceBucket
impl Sync for PriceBucket
impl Unpin for PriceBucket
impl UnsafeUnpin for PriceBucket
impl UnwindSafe for PriceBucket
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