pub enum PlatformSelfTradePrevention {
CancelTaker,
CancelMaker,
CancelBoth,
SkipOwnLiquidity,
}Expand description
Collision policy for an incoming order that would cross the owner’s own resting liquidity. Every mode still preserves Strata’s matcher and on-chain self-fill prohibition; this only controls which order is cancelled first.
Variants§
Trait Implementations§
Source§impl Clone for PlatformSelfTradePrevention
impl Clone for PlatformSelfTradePrevention
Source§fn clone(&self) -> PlatformSelfTradePrevention
fn clone(&self) -> PlatformSelfTradePrevention
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 PlatformSelfTradePrevention
Source§impl Debug for PlatformSelfTradePrevention
impl Debug for PlatformSelfTradePrevention
Source§impl<'de> Deserialize<'de> for PlatformSelfTradePrevention
impl<'de> Deserialize<'de> for PlatformSelfTradePrevention
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSelfTradePrevention, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSelfTradePrevention, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformSelfTradePrevention
Source§impl Serialize for PlatformSelfTradePrevention
impl Serialize for PlatformSelfTradePrevention
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformSelfTradePrevention
Auto Trait Implementations§
impl Freeze for PlatformSelfTradePrevention
impl RefUnwindSafe for PlatformSelfTradePrevention
impl Send for PlatformSelfTradePrevention
impl Sync for PlatformSelfTradePrevention
impl Unpin for PlatformSelfTradePrevention
impl UnsafeUnpin for PlatformSelfTradePrevention
impl UnwindSafe for PlatformSelfTradePrevention
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