#[repr(i32)]pub enum CouponTargetType {
Unknown = -1,
Stock = 0,
UsOption = 1,
HkWarrant = 2,
Etf = 3,
Lof = 4,
}Expand description
Instrument type a coupon applies to (the server’s bz_types /
underlying_type)
Variants§
Unknown = -1
Unknown (an undocumented code)
Stock = 0
Stocks (StockTrade)
UsOption = 1
US stock options (UsStockOptions)
HkWarrant = 2
HK warrants (HkStockWarrant)
Etf = 3
ETF
Lof = 4
LOF
Trait Implementations§
Source§impl Clone for CouponTargetType
impl Clone for CouponTargetType
impl Copy for CouponTargetType
Source§impl Debug for CouponTargetType
impl Debug for CouponTargetType
Source§impl Default for CouponTargetType
impl Default for CouponTargetType
Source§impl<'de> Deserialize<'de> for CouponTargetType
impl<'de> Deserialize<'de> for CouponTargetType
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
impl Eq for CouponTargetType
Source§impl From<CouponTargetType> for i32
impl From<CouponTargetType> for i32
Source§fn from(enum_value: CouponTargetType) -> Self
fn from(enum_value: CouponTargetType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for CouponTargetType
impl From<i32> for CouponTargetType
Source§impl FromPrimitive for CouponTargetType
impl FromPrimitive for CouponTargetType
Source§impl Hash for CouponTargetType
impl Hash for CouponTargetType
Source§impl PartialEq for CouponTargetType
impl PartialEq for CouponTargetType
Source§impl Serialize for CouponTargetType
impl Serialize for CouponTargetType
impl StructuralPartialEq for CouponTargetType
Auto Trait Implementations§
impl Freeze for CouponTargetType
impl RefUnwindSafe for CouponTargetType
impl Send for CouponTargetType
impl Sync for CouponTargetType
impl Unpin for CouponTargetType
impl UnsafeUnpin for CouponTargetType
impl UnwindSafe for CouponTargetType
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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