pub enum PositionRefMsg {
ByTradeId {
trade_id: String,
},
AllOnSymbol {
symbol: String,
},
AllInGroup {
group_id: String,
},
}Expand description
Wire-safe position reference.
Variants§
ByTradeId
Target the position with the given application-defined trade id.
AllOnSymbol
All open positions on this symbol.
AllInGroup
All open positions in this group.
Trait Implementations§
Source§impl Clone for PositionRefMsg
impl Clone for PositionRefMsg
Source§impl Debug for PositionRefMsg
impl Debug for PositionRefMsg
Source§impl<'de> Deserialize<'de> for PositionRefMsg
impl<'de> Deserialize<'de> for PositionRefMsg
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
Auto Trait Implementations§
impl Freeze for PositionRefMsg
impl RefUnwindSafe for PositionRefMsg
impl Send for PositionRefMsg
impl Sync for PositionRefMsg
impl Unpin for PositionRefMsg
impl UnsafeUnpin for PositionRefMsg
impl UnwindSafe for PositionRefMsg
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