#[non_exhaustive]pub enum AssetMainType {
Show 13 variants
Bond,
Equity,
Etf,
Extended,
Forex,
Future,
FutureOption,
Fundamental,
Index,
Indicator,
MutualFund,
Option,
Unknown,
}Expand description
Instrument class as Market Data spells assetMainType on quotes and
stream envelopes and assetType on instruments. A different value set
from the Trader API’s AssetType.
Unknown is both Schwab’s own UNKNOWN and any value added after this
release, so decoding never fails on it.
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.
Bond
Equity
Etf
Extended
Forex
Future
FutureOption
Fundamental
Index
Indicator
MutualFund
Option
Unknown
Trait Implementations§
Source§impl Clone for AssetMainType
impl Clone for AssetMainType
impl Copy for AssetMainType
Source§impl Debug for AssetMainType
impl Debug for AssetMainType
Source§impl<'de> Deserialize<'de> for AssetMainType
impl<'de> Deserialize<'de> for AssetMainType
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 AssetMainType
Source§impl Hash for AssetMainType
impl Hash for AssetMainType
Source§impl JsonSchema for AssetMainType
Available on crate feature schemars only.
impl JsonSchema for AssetMainType
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 AssetMainType
impl PartialEq for AssetMainType
Source§impl Serialize for AssetMainType
impl Serialize for AssetMainType
impl StructuralPartialEq for AssetMainType
Auto Trait Implementations§
impl Freeze for AssetMainType
impl RefUnwindSafe for AssetMainType
impl Send for AssetMainType
impl Sync for AssetMainType
impl Unpin for AssetMainType
impl UnsafeUnpin for AssetMainType
impl UnwindSafe for AssetMainType
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