pub enum ChainTerms {
CoveredCall {
strike: Strike,
},
CashSecuredPut {
strike: Strike,
},
CallSpread {
lower_strike: Strike,
upper_strike: Strike,
},
PutSpread {
lower_strike: Strike,
upper_strike: Strike,
},
}Variants§
Implementations§
Source§impl ChainTerms
impl ChainTerms
pub fn from_parts( product: ChainPositionType, strike: Strike, upper: Option<Strike>, ) -> Result<Self, SpreadError>
pub const fn position_type(self) -> ChainPositionType
pub const fn strike(self) -> Strike
pub const fn upper_strike(self) -> Option<Strike>
Trait Implementations§
Source§impl Clone for ChainTerms
impl Clone for ChainTerms
impl Copy for ChainTerms
Source§impl Debug for ChainTerms
impl Debug for ChainTerms
impl Eq for ChainTerms
Source§impl PartialEq for ChainTerms
impl PartialEq for ChainTerms
impl StructuralPartialEq for ChainTerms
Auto Trait Implementations§
impl Forget for ChainTerms
impl Freeze for ChainTerms
impl RefUnwindSafe for ChainTerms
impl Send for ChainTerms
impl Sync for ChainTerms
impl Unpin for ChainTerms
impl UnsafeUnpin for ChainTerms
impl UnwindSafe for ChainTerms
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,
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