#[non_exhaustive]pub struct MarketTime {
pub id: String,
pub name: String,
pub status: String,
pub message: Option<String>,
pub open: Option<String>,
pub close: Option<String>,
pub time: Option<String>,
pub timezone: Option<String>,
pub timezone_short: Option<String>,
pub gmt_offset: Option<i32>,
pub dst: Option<bool>,
}Expand description
Market time information for a specific market
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: StringMarket identifier (e.g., “us”, “uk”, “jp”)
name: StringHuman-readable market name (e.g., “U.S. markets”)
status: StringMarket status (e.g., “open”, “closed”)
message: Option<String>Status message (e.g., “U.S. markets closed”)
open: Option<String>Market open time (ISO 8601 format)
close: Option<String>Market close time (ISO 8601 format)
time: Option<String>Current time (ISO 8601 format)
timezone: Option<String>Timezone name (e.g., “America/New_York”)
timezone_short: Option<String>Short timezone name (e.g., “EST”)
gmt_offset: Option<i32>GMT offset in seconds (e.g., -18000 for EST)
dst: Option<bool>Whether daylight saving time is in effect
Implementations§
Source§impl MarketTime
impl MarketTime
Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Converts this struct to a single-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Sourcepub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
pub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
Converts a slice of structs to a multi-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Trait Implementations§
Source§impl Clone for MarketTime
impl Clone for MarketTime
Source§fn clone(&self) -> MarketTime
fn clone(&self) -> MarketTime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarketTime
impl Debug for MarketTime
Source§impl<'de> Deserialize<'de> for MarketTime
impl<'de> Deserialize<'de> for MarketTime
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>,
Source§impl PartialEq for MarketTime
impl PartialEq for MarketTime
Source§impl Serialize for MarketTime
impl Serialize for MarketTime
impl StructuralPartialEq for MarketTime
Auto Trait Implementations§
impl Freeze for MarketTime
impl RefUnwindSafe for MarketTime
impl Send for MarketTime
impl Sync for MarketTime
impl Unpin for MarketTime
impl UnwindSafe for MarketTime
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<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 more