#[non_exhaustive]pub enum CalendarDetail {
Earnings {
eps: Option<f64>,
eps_estimated: Option<f64>,
revenue: Option<f64>,
revenue_estimated: Option<f64>,
fiscal_date_ending: Option<String>,
time: Option<String>,
},
Ipo {
company: Option<String>,
exchange: Option<String>,
actions: Option<String>,
shares: Option<f64>,
price_range: Option<String>,
market_cap: Option<f64>,
},
Dividend {
dividend: Option<f64>,
adj_dividend: Option<f64>,
record_date: Option<String>,
payment_date: Option<String>,
declaration_date: Option<String>,
},
Split {
numerator: Option<f64>,
denominator: Option<f64>,
},
MarketHoliday {
name: Option<String>,
exchange: Option<String>,
status: Option<String>,
open: Option<String>,
close: Option<String>,
},
Economic {
event: Option<String>,
country: Option<String>,
actual: Option<f64>,
previous: Option<f64>,
estimate: Option<f64>,
change: Option<f64>,
change_percentage: Option<f64>,
impact: Option<String>,
},
}Expand description
The event-specific payload of a MarketCalendarEntry.
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.
Earnings
An earnings release, with actuals once reported.
Fields
Ipo
An initial public offering.
Fields
Shares offered.
Dividend
A dividend payment.
Fields
Split
A stock split.
Fields
MarketHoliday
A market holiday or early close.
Fields
Economic
A macro-economic release.
Fields
Trait Implementations§
Source§impl Clone for CalendarDetail
impl Clone for CalendarDetail
Source§fn clone(&self) -> CalendarDetail
fn clone(&self) -> CalendarDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CalendarDetail
impl Debug for CalendarDetail
Source§impl<'de> Deserialize<'de> for CalendarDetail
impl<'de> Deserialize<'de> for CalendarDetail
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
Auto Trait Implementations§
impl Freeze for CalendarDetail
impl RefUnwindSafe for CalendarDetail
impl Send for CalendarDetail
impl Sync for CalendarDetail
impl Unpin for CalendarDetail
impl UnsafeUnpin for CalendarDetail
impl UnwindSafe for CalendarDetail
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 more