#[repr(u8)]pub enum InstrumentType {
Show 24 variants
Binary = 0,
BungeeCapped = 1,
BungeeCommodities = 2,
BungeeCurrencies = 3,
BungeeIndices = 4,
Commodities = 5,
Currencies = 6,
Indices = 7,
KnockoutsCommodities = 8,
KnockoutsCurrencies = 9,
KnockoutsIndices = 10,
KnockoutsShares = 11,
OptCommodities = 12,
OptCurrencies = 13,
OptIndices = 14,
OptRates = 15,
OptShares = 16,
Rates = 17,
Sectors = 18,
Shares = 19,
SprintMarket = 20,
TestMarket = 21,
Unknown = 22,
Options = 23,
}Expand description
Types of financial instruments available in the IG Markets API
Variants§
Binary = 0
Binary options
BungeeCapped = 1
Bungee capped instruments
BungeeCommodities = 2
Bungee commodities instruments
BungeeCurrencies = 3
Bungee currencies instruments
BungeeIndices = 4
Bungee indices instruments
Commodities = 5
Commodities instruments
Currencies = 6
Currency pairs
Indices = 7
Market indices
KnockoutsCommodities = 8
Knockouts commodities instruments
KnockoutsCurrencies = 9
Knockouts currencies instruments
KnockoutsIndices = 10
Knockouts indices instruments
Knockouts shares instruments
OptCommodities = 12
Options on commodities
OptCurrencies = 13
Options on currencies
OptIndices = 14
Options on indices
OptRates = 15
Options on rates
Options on shares
Rates = 17
Interest rates
Sectors = 18
Market sectors
Stocks and shares
SprintMarket = 20
Sprint market instruments
TestMarket = 21
Test market instruments
Unknown = 22
Unknown instrument type
Options = 23
Options
Trait Implementations§
Source§impl Clone for InstrumentType
impl Clone for InstrumentType
Source§fn clone(&self) -> InstrumentType
fn clone(&self) -> InstrumentType
Returns a duplicate 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 InstrumentType
impl Debug for InstrumentType
Source§impl Default for InstrumentType
impl Default for InstrumentType
Source§fn default() -> InstrumentType
fn default() -> InstrumentType
Returns the “default value” for a type. Read more
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
Source§impl Display for InstrumentType
impl Display for InstrumentType
Source§impl Hash for InstrumentType
impl Hash for InstrumentType
Source§impl PartialEq for InstrumentType
impl PartialEq for InstrumentType
Source§impl Serialize for InstrumentType
impl Serialize for InstrumentType
impl Copy for InstrumentType
impl Eq for InstrumentType
impl StructuralPartialEq for InstrumentType
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.