#[non_exhaustive]pub enum OrderPositionFill {
OpenOnly,
ReduceFirst,
ReduceOnly,
Default,
Other(String),
}Expand description
Specification of how Positions in the Account are modified when the Order is filled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpenOnly
OPEN_ONLY.
ReduceFirst
REDUCE_FIRST.
ReduceOnly
REDUCE_ONLY.
Default
DEFAULT.
Other(String)
A value not (yet) known to this version of the SDK.
Implementations§
Trait Implementations§
Source§impl Clone for OrderPositionFill
impl Clone for OrderPositionFill
Source§fn clone(&self) -> OrderPositionFill
fn clone(&self) -> OrderPositionFill
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 OrderPositionFill
impl Debug for OrderPositionFill
Source§impl<'de> Deserialize<'de> for OrderPositionFill
impl<'de> Deserialize<'de> for OrderPositionFill
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OrderPositionFill
impl Display for OrderPositionFill
impl Eq for OrderPositionFill
Source§impl From<&str> for OrderPositionFill
impl From<&str> for OrderPositionFill
Source§impl From<String> for OrderPositionFill
impl From<String> for OrderPositionFill
Source§impl FromStr for OrderPositionFill
impl FromStr for OrderPositionFill
Source§impl Hash for OrderPositionFill
impl Hash for OrderPositionFill
Source§impl PartialEq for OrderPositionFill
impl PartialEq for OrderPositionFill
Source§impl Serialize for OrderPositionFill
impl Serialize for OrderPositionFill
impl StructuralPartialEq for OrderPositionFill
Auto Trait Implementations§
impl Freeze for OrderPositionFill
impl RefUnwindSafe for OrderPositionFill
impl Send for OrderPositionFill
impl Sync for OrderPositionFill
impl Unpin for OrderPositionFill
impl UnsafeUnpin for OrderPositionFill
impl UnwindSafe for OrderPositionFill
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.