Enum dbn::enums::InstrumentClass
source · #[repr(u8)]pub enum InstrumentClass {
Bond,
Call,
Future,
Stock,
MixedSpread,
Put,
FutureSpread,
OptionSpread,
FxSpot,
}Expand description
The class of instrument.
Variants§
Bond
A bond.
Call
A call option.
Future
A future.
Stock
A stock.
MixedSpread
A spread composed of multiple instrument classes.
Put
A put option.
FutureSpread
A spread composed of futures.
OptionSpread
A spread composed of options.
FxSpot
A foreign exchange spot.
Trait Implementations§
source§impl Clone for InstrumentClass
impl Clone for InstrumentClass
source§fn clone(&self) -> InstrumentClass
fn clone(&self) -> InstrumentClass
Returns a copy of the value. Read more
1.0.0 · 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 InstrumentClass
impl Debug for InstrumentClass
source§impl From<InstrumentClass> for char
impl From<InstrumentClass> for char
source§fn from(class: InstrumentClass) -> Self
fn from(class: InstrumentClass) -> Self
Converts to this type from the input type.
source§impl From<InstrumentClass> for u8
impl From<InstrumentClass> for u8
source§fn from(enum_value: InstrumentClass) -> Self
fn from(enum_value: InstrumentClass) -> Self
Converts to this type from the input type.
source§impl Hash for InstrumentClass
impl Hash for InstrumentClass
source§impl PartialEq<InstrumentClass> for InstrumentClass
impl PartialEq<InstrumentClass> for InstrumentClass
source§fn eq(&self, other: &InstrumentClass) -> bool
fn eq(&self, other: &InstrumentClass) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for InstrumentClass
impl TryFrom<u8> for InstrumentClass
§type Error = TryFromPrimitiveError<InstrumentClass>
type Error = TryFromPrimitiveError<InstrumentClass>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for InstrumentClass
impl TryFromPrimitive for InstrumentClass
impl Copy for InstrumentClass
impl Eq for InstrumentClass
impl StructuralEq for InstrumentClass
impl StructuralPartialEq for InstrumentClass
Auto Trait Implementations§
impl RefUnwindSafe for InstrumentClass
impl Send for InstrumentClass
impl Sync for InstrumentClass
impl Unpin for InstrumentClass
impl UnwindSafe for InstrumentClass
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