pub struct PositionKey {
pub account_id: AccountId,
pub strategy_id: StrategyId,
pub symbol: ExecutionSymbol,
}Expand description
Position key.
Fields§
§account_id: AccountIdAccount id.
strategy_id: StrategyIdStrategy id.
symbol: ExecutionSymbolSymbol.
Trait Implementations§
Source§impl Clone for PositionKey
impl Clone for PositionKey
Source§fn clone(&self) -> PositionKey
fn clone(&self) -> PositionKey
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 moreimpl Copy for PositionKey
Source§impl Debug for PositionKey
impl Debug for PositionKey
impl Eq for PositionKey
Source§impl Hash for PositionKey
impl Hash for PositionKey
Source§impl PartialEq for PositionKey
impl PartialEq for PositionKey
Source§fn eq(&self, other: &PositionKey) -> bool
fn eq(&self, other: &PositionKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PositionKey
Auto Trait Implementations§
impl Freeze for PositionKey
impl RefUnwindSafe for PositionKey
impl Send for PositionKey
impl Sync for PositionKey
impl Unpin for PositionKey
impl UnsafeUnpin for PositionKey
impl UnwindSafe for PositionKey
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