#[non_exhaustive]pub enum Operation {
Show 17 variants
Quote,
Chart,
ChartRange,
Financials,
News,
Recommendations,
Options,
Events,
QuotesBatch,
Spark,
CryptoQuote,
EconomicSeries,
ForexQuote,
IndicesQuote,
FuturesQuote,
CommoditiesQuote,
Filings,
}Expand description
A single provider-adapter operation — finer-grained than Capability
(e.g. Chart, ChartRange, and Spark all fall under Capability::CHART).
Used in crate::FinanceError::NotSupported to say exactly which method a
provider doesn’t implement; Operation::capability recovers the coarser
bit for computing which other providers could satisfy it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Quote
Single-symbol quote.
Chart
Historical OHLCV chart over an interval/range.
ChartRange
Historical OHLCV chart over a custom timestamp range.
Financials
Financial statements (income/balance/cash flow).
News
Symbol news.
Recommendations
Similar-symbol recommendations.
Options
Options chain.
Events
Corporate calendar events (earnings, dividends, splits).
QuotesBatch
Batch quotes for multiple symbols in one request.
Spark
Lightweight sparkline data for multiple symbols in one request.
CryptoQuote
Cryptocurrency quote.
EconomicSeries
Macro-economic data series.
ForexQuote
Foreign exchange currency pair quote.
IndicesQuote
Stock market index quote.
FuturesQuote
Futures contract quote.
CommoditiesQuote
Commodity price quote.
Filings
SEC EDGAR filing data.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Short lowercase identifier (e.g. "chart_range", "crypto_quote").
Sourcepub fn capability(self) -> Capability
pub fn capability(self) -> Capability
The coarser Capability bit this operation falls under.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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
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
key and return true if they are equal.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> ⓘ
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> ⓘ
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> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
impl<T> PlanCallbackArgs for T
impl<T> PlanCallbackOut for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more