#[non_exhaustive]pub enum InstrumentType {
Currency,
Cfd,
Metal,
Unknown(String),
}Expand description
The type of an Instrument.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Currency
Currency
Cfd
Contract For Difference
Metal
Metal
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for InstrumentType
impl Clone 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<'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 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 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