pub struct ExtendedHoursQuote {
pub ticker: String,
pub regular_price: Option<f64>,
pub regular_previous_close: Option<f64>,
pub session: Option<String>,
pub extended_price: Option<f64>,
pub extended_change_pct: Option<f64>,
pub extended_change_abs: Option<f64>,
pub timestamp_utc: Option<DateTime<Utc>>,
}Fields§
§ticker: String§regular_price: Option<f64>last regular-session close (Yahoo meta.regularMarketPrice)
regular_previous_close: Option<f64>prior trading day close (Yahoo meta.chartPreviousClose)
session: Option<String>“pre” | “regular” | “post” | “closed”
extended_price: Option<f64>most recent post-market price (or pre-market if it’s morning) — None when no extended-hours print has landed yet for the current window
extended_change_pct: Option<f64>(extended_price / regular_price - 1) * 100
extended_change_abs: Option<f64>extended_price - regular_price
timestamp_utc: Option<DateTime<Utc>>when the extended-hours print landed
Trait Implementations§
Source§impl Clone for ExtendedHoursQuote
impl Clone for ExtendedHoursQuote
Source§fn clone(&self) -> ExtendedHoursQuote
fn clone(&self) -> ExtendedHoursQuote
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 ExtendedHoursQuote
impl Debug for ExtendedHoursQuote
Auto Trait Implementations§
impl Freeze for ExtendedHoursQuote
impl RefUnwindSafe for ExtendedHoursQuote
impl Send for ExtendedHoursQuote
impl Sync for ExtendedHoursQuote
impl Unpin for ExtendedHoursQuote
impl UnsafeUnpin for ExtendedHoursQuote
impl UnwindSafe for ExtendedHoursQuote
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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