#[non_exhaustive]pub struct PriceBucket {
pub price: Option<PriceValue>,
pub liquidity: Option<DecimalNumber>,
}Expand description
A Price Bucket represents a price available for an amount of liquidity
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.price: Option<PriceValue>The Price offered by the PriceBucket
liquidity: Option<DecimalNumber>The amount of liquidity offered by the PriceBucket. The REST API encodes this as a string, the streaming API as a JSON number; OANDA documents it as “integer or decimal if available”.
Trait Implementations§
Source§impl Clone for PriceBucket
impl Clone for PriceBucket
Source§fn clone(&self) -> PriceBucket
fn clone(&self) -> PriceBucket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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