#[non_exhaustive]pub struct UnitsAvailable {
pub default: Option<UnitsAvailableDetails>,
pub reduce_first: Option<UnitsAvailableDetails>,
pub reduce_only: Option<UnitsAvailableDetails>,
pub open_only: Option<UnitsAvailableDetails>,
}Expand description
Representation of how many units of an Instrument are available to be traded by an Order depending on its postionFill option.
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.default: Option<UnitsAvailableDetails>The default field.
reduce_first: Option<UnitsAvailableDetails>The reduceFirst field.
reduce_only: Option<UnitsAvailableDetails>The reduceOnly field.
open_only: Option<UnitsAvailableDetails>The openOnly field.
Trait Implementations§
Source§impl Clone for UnitsAvailable
impl Clone for UnitsAvailable
Source§fn clone(&self) -> UnitsAvailable
fn clone(&self) -> UnitsAvailable
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 UnitsAvailable
impl Debug for UnitsAvailable
Source§impl<'de> Deserialize<'de> for UnitsAvailable
impl<'de> Deserialize<'de> for UnitsAvailable
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 UnitsAvailable
impl PartialEq for UnitsAvailable
Source§impl Serialize for UnitsAvailable
impl Serialize for UnitsAvailable
impl StructuralPartialEq for UnitsAvailable
Auto Trait Implementations§
impl Freeze for UnitsAvailable
impl RefUnwindSafe for UnitsAvailable
impl Send for UnitsAvailable
impl Sync for UnitsAvailable
impl Unpin for UnitsAvailable
impl UnsafeUnpin for UnitsAvailable
impl UnwindSafe for UnitsAvailable
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