[][src]Struct fxoanda::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

Implementations

impl PriceBucket[src]

pub fn new() -> PriceBucket[src]

pub fn with_price(self, x: f32) -> PriceBucket[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) -> PriceBucket[src]

The amount of liquidity offered by the PriceBucket

  • param i32
  • return PriceBucket

Trait Implementations

impl Debug for PriceBucket[src]

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

impl Serialize for PriceBucket[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.