#[non_exhaustive]pub struct ScreenerFilters {Show 13 fields
pub market_cap_min: Option<f64>,
pub market_cap_max: Option<f64>,
pub price_min: Option<f64>,
pub price_max: Option<f64>,
pub volume_min: Option<f64>,
pub beta_min: Option<f64>,
pub beta_max: Option<f64>,
pub sector: Option<String>,
pub industry: Option<String>,
pub exchange: Option<String>,
pub country: Option<String>,
pub actively_trading: Option<bool>,
pub limit: Option<u32>,
}Expand description
Filters for a provider-routed screener query.
All fields are optional; unset filters are omitted from the request. Build
with ScreenerFilters::new and the chainable setters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.market_cap_min: Option<f64>Minimum market capitalisation.
market_cap_max: Option<f64>Maximum market capitalisation.
price_min: Option<f64>Minimum price.
price_max: Option<f64>Maximum price.
volume_min: Option<f64>Minimum trading volume.
beta_min: Option<f64>Minimum beta.
beta_max: Option<f64>Maximum beta.
sector: Option<String>Sector name filter.
industry: Option<String>Industry name filter.
exchange: Option<String>Exchange filter.
country: Option<String>Country filter.
actively_trading: Option<bool>Restrict to actively trading symbols.
limit: Option<u32>Maximum number of results.
Implementations§
Source§impl ScreenerFilters
impl ScreenerFilters
Sourcepub fn market_cap(self, min: Option<f64>, max: Option<f64>) -> Self
pub fn market_cap(self, min: Option<f64>, max: Option<f64>) -> Self
Restrict market capitalisation to [min, max].
Sourcepub fn volume_min(self, min: f64) -> Self
pub fn volume_min(self, min: f64) -> Self
Require at least min traded volume.
Sourcepub fn actively_trading(self, actively_trading: bool) -> Self
pub fn actively_trading(self, actively_trading: bool) -> Self
Restrict to symbols that are actively trading.
Trait Implementations§
Source§impl Clone for ScreenerFilters
impl Clone for ScreenerFilters
Source§fn clone(&self) -> ScreenerFilters
fn clone(&self) -> ScreenerFilters
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 ScreenerFilters
impl Debug for ScreenerFilters
Source§impl Default for ScreenerFilters
impl Default for ScreenerFilters
Source§fn default() -> ScreenerFilters
fn default() -> ScreenerFilters
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScreenerFilters
impl PartialEq for ScreenerFilters
impl StructuralPartialEq for ScreenerFilters
Auto Trait Implementations§
impl Freeze for ScreenerFilters
impl RefUnwindSafe for ScreenerFilters
impl Send for ScreenerFilters
impl Sync for ScreenerFilters
impl Unpin for ScreenerFilters
impl UnsafeUnpin for ScreenerFilters
impl UnwindSafe for ScreenerFilters
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,
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