#[non_exhaustive]pub enum StreamService {
Show 14 variants
Admin,
LeveloneEquities,
LeveloneOptions,
LeveloneFutures,
LeveloneFuturesOptions,
LeveloneForex,
NyseBook,
NasdaqBook,
OptionsBook,
ChartEquity,
ChartFutures,
ScreenerEquity,
ScreenerOption,
AcctActivity,
}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.
Admin
LeveloneEquities
LeveloneOptions
LeveloneFutures
LeveloneFuturesOptions
LeveloneForex
NyseBook
NasdaqBook
OptionsBook
ChartEquity
ChartFutures
ScreenerEquity
ScreenerOption
AcctActivity
Implementations§
Source§impl StreamService
impl StreamService
Sourcepub fn fields(self) -> &'static [Field]
pub fn fields(self) -> &'static [Field]
The field table for this service; empty for ADMIN, which carries
no data.
Sourcepub fn decode(self, content: &DataContent) -> Result<StreamPayload, Error>
pub fn decode(self, content: &DataContent) -> Result<StreamPayload, Error>
Decode one content item of this service.
Source§impl StreamService
impl StreamService
pub fn as_str(&self) -> &str
Sourcepub fn from_api_str(s: &str) -> Option<Self>
pub fn from_api_str(s: &str) -> Option<Self>
Parse a service from its API wire name (e.g. LEVELONE_EQUITIES).
Sourcepub fn default_fields(self) -> String
pub fn default_fields(self) -> String
Default subscription field IDs for this service.
Every field of the service’s table (fields) except
for LEVELONE_EQUITIES, which starts with the quote-sized subset in
LevelOneEquityFields::default_fields since watchlists are large.
Requesting a number beyond a table is rejected by the streamer with a
bad-command error.
Trait Implementations§
Source§impl Clone for StreamService
impl Clone for StreamService
impl Copy for StreamService
Source§impl Debug for StreamService
impl Debug for StreamService
Source§impl<'de> Deserialize<'de> for StreamService
impl<'de> Deserialize<'de> for StreamService
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 StreamService
Source§impl Hash for StreamService
impl Hash for StreamService
Source§impl JsonSchema for StreamService
Available on crate feature schemars only.
impl JsonSchema for StreamService
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 StreamService
impl PartialEq for StreamService
Source§impl Serialize for StreamService
impl Serialize for StreamService
impl StructuralPartialEq for StreamService
Auto Trait Implementations§
impl Freeze for StreamService
impl RefUnwindSafe for StreamService
impl Send for StreamService
impl Sync for StreamService
impl Unpin for StreamService
impl UnsafeUnpin for StreamService
impl UnwindSafe for StreamService
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