[][src]Struct fxoanda_definitions::PriceBucket

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

Methods

impl PriceBucket[src]

pub fn new() -> PriceBucket[src]

pub fn with_price(self, x: f32) -> Self[src]

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

pub fn with_liquidity(self, x: i32) -> Self[src]

The amount of liquidity offered by the PriceBucket

  • param i32
  • return PriceBucket

Trait Implementations

impl Debug for PriceBucket[src]

impl Serialize for PriceBucket[src]

impl<'de> Deserialize<'de> for PriceBucket[src]

Auto Trait Implementations

impl Send for PriceBucket

impl Sync for PriceBucket

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]