#[repr(u8)]pub enum ChainPositionType {
CoveredCall = 0,
CashSecuredPut = 1,
CallSpread = 2,
PutSpread = 3,
}Expand description
Contract discriminants only. Public products have no numeric conversion.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ChainPositionType
impl Clone for ChainPositionType
impl Copy for ChainPositionType
Source§impl Debug for ChainPositionType
impl Debug for ChainPositionType
Source§impl<'de> Deserialize<'de> for ChainPositionType
impl<'de> Deserialize<'de> for ChainPositionType
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
impl Eq for ChainPositionType
Source§impl From<ChainPositionType> for u8
impl From<ChainPositionType> for u8
Source§fn from(value: ChainPositionType) -> Self
fn from(value: ChainPositionType) -> Self
Converts to this type from the input type.
Source§impl Hash for ChainPositionType
impl Hash for ChainPositionType
Source§impl PartialEq for ChainPositionType
impl PartialEq for ChainPositionType
Source§impl Serialize for ChainPositionType
impl Serialize for ChainPositionType
impl StructuralPartialEq for ChainPositionType
Auto Trait Implementations§
impl Forget for ChainPositionType
impl Freeze for ChainPositionType
impl RefUnwindSafe for ChainPositionType
impl Send for ChainPositionType
impl Sync for ChainPositionType
impl Unpin for ChainPositionType
impl UnsafeUnpin for ChainPositionType
impl UnwindSafe for ChainPositionType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more