pub struct OrderAllocation {
pub account: String,
pub position: Decimal,
pub position_desired: Decimal,
pub position_after: Decimal,
pub desired_alloc_qty: Decimal,
pub allowed_alloc_qty: Decimal,
pub is_monetary: bool,
}Expand description
Account allocation details for an order state.
Fields§
§account: StringAccount.
position: DecimalCurrent position.
position_desired: DecimalDesired position.
position_after: DecimalPosition after allocation.
desired_alloc_qty: DecimalDesired allocation quantity.
allowed_alloc_qty: DecimalAllowed allocation quantity.
is_monetary: boolMonetary allocation flag.
Trait Implementations§
Source§impl Clone for OrderAllocation
impl Clone for OrderAllocation
Source§fn clone(&self) -> OrderAllocation
fn clone(&self) -> OrderAllocation
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 OrderAllocation
impl Debug for OrderAllocation
Source§impl Default for OrderAllocation
impl Default for OrderAllocation
Source§fn default() -> OrderAllocation
fn default() -> OrderAllocation
Returns the “default value” for a type. Read more
Source§impl PartialEq for OrderAllocation
impl PartialEq for OrderAllocation
impl StructuralPartialEq for OrderAllocation
Auto Trait Implementations§
impl Freeze for OrderAllocation
impl RefUnwindSafe for OrderAllocation
impl Send for OrderAllocation
impl Sync for OrderAllocation
impl Unpin for OrderAllocation
impl UnsafeUnpin for OrderAllocation
impl UnwindSafe for OrderAllocation
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