Struct fxoanda_definitions::PriceBucket
source · pub struct PriceBucket {
pub price: Option<f32>,
pub liquidity: Option<i32>,
}
Fields§
§price: Option<f32>
The Price offered by the PriceBucket format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
liquidity: Option<i32>
The amount of liquidity offered by the PriceBucket
Implementations§
source§impl PriceBucket
impl PriceBucket
pub fn new() -> PriceBucket
sourcepub fn with_price(self, x: f32) -> Self
pub fn with_price(self, x: f32) -> Self
The Price offered by the PriceBucket format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
- param f32
- return PriceBucket
sourcepub fn with_liquidity(self, x: i32) -> Self
pub fn with_liquidity(self, x: i32) -> Self
The amount of liquidity offered by the PriceBucket
- param i32
- return PriceBucket
Trait Implementations§
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
Auto Trait Implementations§
impl Freeze for PriceBucket
impl RefUnwindSafe for PriceBucket
impl Send for PriceBucket
impl Sync for PriceBucket
impl Unpin 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