pub enum InstrumentType {
Stock,
Etf,
Bond,
Currency,
Futures,
Options,
Crypto,
Other,
}Expand description
Type of financial instrument.
Variants§
Stock
Stock/equity.
Etf
Exchange-traded fund.
Bond
Bond.
Currency
Currency pair.
Futures
Futures contract.
Options
Options contract.
Crypto
Cryptocurrency.
Other
Other/unknown type.
Trait Implementations§
Source§impl Clone for InstrumentType
impl Clone for InstrumentType
impl Copy for InstrumentType
Source§impl Debug for InstrumentType
impl Debug for InstrumentType
Source§impl<'de> Deserialize<'de> for InstrumentType
impl<'de> Deserialize<'de> for InstrumentType
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 InstrumentType
Source§impl PartialEq for InstrumentType
impl PartialEq for InstrumentType
Source§impl Serialize for InstrumentType
impl Serialize for InstrumentType
impl StructuralPartialEq for InstrumentType
Auto Trait Implementations§
impl Forget for InstrumentType
impl Freeze for InstrumentType
impl Move for InstrumentType
impl RefUnwindSafe for InstrumentType
impl Send for InstrumentType
impl Sync for InstrumentType
impl Unpin for InstrumentType
impl UnsafeUnpin for InstrumentType
impl UnwindSafe for InstrumentType
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