#[non_exhaustive]pub struct CalendarEvent {
pub id: String,
pub kind: CalendarKind,
pub time: DateTime<Utc>,
pub country: String,
pub title: String,
pub symbol: Option<String>,
pub importance: Option<Importance>,
pub actual: Option<String>,
pub forecast: Option<String>,
pub prior: Option<String>,
}Expand description
One calendar event, its figures already formatted for display.
actual, forecast and prior are the reported figure, the consensus and the previous
figure: the release for an economic event, the earnings per share for earnings, the amount
per share for a dividend and the offer price for an IPO. Leave unknown figures None.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringIdentifies the event among the events of one answer.
kind: CalendarKindCalendar category, such as earnings or economic releases.
time: DateTime<Utc>When the figure is released, the earnings reported, the dividend goes ex or the shares list.
country: StringThe country, in the codes the feed uses, such as "US".
title: StringThe release, such as "CPI (YoY)", or the company’s name.
symbol: Option<String>The company’s symbol, for earnings, dividends and IPOs; the panel offers to open it.
importance: Option<Importance>Importance assigned by the host, when applicable.
actual: Option<String>Published figure, formatted by the host, when available.
forecast: Option<String>Expected figure, formatted by the host, when available.
prior: Option<String>Previous figure, formatted by the host, when available.
Implementations§
Trait Implementations§
Source§impl Clone for CalendarEvent
impl Clone for CalendarEvent
Source§fn clone(&self) -> CalendarEvent
fn clone(&self) -> CalendarEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CalendarEvent
impl Debug for CalendarEvent
Source§impl PartialEq for CalendarEvent
impl PartialEq for CalendarEvent
impl StructuralPartialEq for CalendarEvent
Auto Trait Implementations§
impl Freeze for CalendarEvent
impl RefUnwindSafe for CalendarEvent
impl Send for CalendarEvent
impl Sync for CalendarEvent
impl Unpin for CalendarEvent
impl UnsafeUnpin for CalendarEvent
impl UnwindSafe for CalendarEvent
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
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,
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 more