pub struct ScreenerResults {
pub quotes: Vec<ScreenerQuote>,
pub screener_type: String,
pub description: Option<String>,
pub last_updated: Option<i64>,
pub total: Option<i64>,
}Expand description
Flattened, user-friendly response for screener results
Returned by the screeners API with a clean structure:
{
"quotes": [...],
"type": "most_actives",
"description": "Stocks ordered in descending order by intraday trade volume",
"lastUpdated": 1234567890,
"total": 100
}This removes Yahoo Finance’s nested wrapper structure and internal metadata.
Fields§
§quotes: Vec<ScreenerQuote>Array of quotes matching the screener criteria
screener_type: StringScreener type (e.g., “most_actives”, “day_gainers”, “custom”)
description: Option<String>Human-readable description of the screener
last_updated: Option<i64>Last updated timestamp (Unix epoch)
total: Option<i64>Total number of matching results (for pagination)
Implementations§
Source§impl ScreenerResults
Map a custom screener record to a ScreenerQuote
impl ScreenerResults
Map a custom screener record to a ScreenerQuote
Custom screener records use different field names than predefined screeners.
Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Converts the quotes to a polars DataFrame.
Each quote becomes a row with all available columns.
Trait Implementations§
Source§impl Clone for ScreenerResults
impl Clone for ScreenerResults
Source§fn clone(&self) -> ScreenerResults
fn clone(&self) -> ScreenerResults
Returns a duplicate of the value. Read more
1.0.0 · 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 ScreenerResults
impl Debug for ScreenerResults
Source§impl<'de> Deserialize<'de> for ScreenerResults
impl<'de> Deserialize<'de> for ScreenerResults
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
Source§impl PartialEq for ScreenerResults
impl PartialEq for ScreenerResults
Source§impl Serialize for ScreenerResults
impl Serialize for ScreenerResults
impl StructuralPartialEq for ScreenerResults
Auto Trait Implementations§
impl Freeze for ScreenerResults
impl RefUnwindSafe for ScreenerResults
impl Send for ScreenerResults
impl Sync for ScreenerResults
impl Unpin for ScreenerResults
impl UnsafeUnpin for ScreenerResults
impl UnwindSafe for ScreenerResults
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