#[non_exhaustive]pub enum AssetSubType {
Show 13 variants
Adr,
Cef,
Coe,
Etf,
Etn,
Gdr,
Mmf,
Oef,
Prf,
Rgt,
Uit,
War,
Unknown,
}Expand description
Instrument subclass as Market Data spells assetSubType beside
AssetMainType: the equity subtypes (COE common stock, PRF
preferred, ADR/GDR depositary receipts, CEF, ETF, ETN, UIT,
WAR warrant, RGT right) and the mutual-fund ones (OEF, CEF,
MMF). Values outside the list decode as Unknown.
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.
Trait Implementations§
Source§impl Clone for AssetSubType
impl Clone for AssetSubType
impl Copy for AssetSubType
Source§impl Debug for AssetSubType
impl Debug for AssetSubType
Source§impl<'de> Deserialize<'de> for AssetSubType
impl<'de> Deserialize<'de> for AssetSubType
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 AssetSubType
Source§impl Hash for AssetSubType
impl Hash for AssetSubType
Source§impl JsonSchema for AssetSubType
Available on crate feature schemars only.
impl JsonSchema for AssetSubType
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AssetSubType
impl PartialEq for AssetSubType
Source§impl Serialize for AssetSubType
impl Serialize for AssetSubType
impl StructuralPartialEq for AssetSubType
Auto Trait Implementations§
impl Freeze for AssetSubType
impl RefUnwindSafe for AssetSubType
impl Send for AssetSubType
impl Sync for AssetSubType
impl Unpin for AssetSubType
impl UnsafeUnpin for AssetSubType
impl UnwindSafe for AssetSubType
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