#[non_exhaustive]pub enum FundField {
Ticker,
CompanyShortName,
EodPrice,
IntradayPriceChange,
IntradayPrice,
CategoryName,
PerformanceRating,
InitialInvestment,
AnnualReturnRank,
RiskRating,
Exchange,
}Expand description
Typed field names for mutual fund custom screener queries.
Use with FundScreenerQuery and
ScreenerFieldExt.
§Example
use finance_query::{FundField, FundScreenerQuery, ScreenerFieldExt};
let query = FundScreenerQuery::new()
.sort_by(FundField::PerformanceRating, false)
.add_condition(FundField::RiskRating.lte(3.0))
.include_fields(vec![
FundField::Ticker,
FundField::CompanyShortName,
FundField::IntradayPrice,
FundField::PerformanceRating,
]);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ticker
Ticker symbol — display only, use in include_fields.
CompanyShortName
Short company name — display only, use in include_fields.
EodPrice
End-of-day price ("eodprice").
IntradayPriceChange
Intraday price change ("intradaypricechange").
IntradayPrice
Intraday price ("intradayprice").
CategoryName
Fund category name ("categoryname").
PerformanceRating
Overall performance rating ("performanceratingoverall").
InitialInvestment
Minimum initial investment ("initialinvestment").
AnnualReturnRank
Annual return rank within category ("annualreturnnavy1categoryrank").
RiskRating
Overall risk rating ("riskratingoverall").
Exchange
Exchange ("exchange").
Implementations§
Trait Implementations§
Source§impl ScreenerField for FundField
impl ScreenerField for FundField
impl Copy for FundField
impl Eq for FundField
impl StructuralPartialEq for FundField
Auto Trait Implementations§
impl Freeze for FundField
impl RefUnwindSafe for FundField
impl Send for FundField
impl Sync for FundField
impl Unpin for FundField
impl UnsafeUnpin for FundField
impl UnwindSafe for FundField
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ScreenerFieldExt for Twhere
T: ScreenerField,
impl<T> ScreenerFieldExt for Twhere
T: ScreenerField,
Source§fn gt(self, v: f64) -> QueryCondition<Self>
fn gt(self, v: f64) -> QueryCondition<Self>
Filter where this field is greater than
v.Source§fn lt(self, v: f64) -> QueryCondition<Self>
fn lt(self, v: f64) -> QueryCondition<Self>
Filter where this field is less than
v.Source§fn gte(self, v: f64) -> QueryCondition<Self>
fn gte(self, v: f64) -> QueryCondition<Self>
Filter where this field is greater than or equal to
v.Source§fn lte(self, v: f64) -> QueryCondition<Self>
fn lte(self, v: f64) -> QueryCondition<Self>
Filter where this field is less than or equal to
v.Source§fn eq_num(self, v: f64) -> QueryCondition<Self>
fn eq_num(self, v: f64) -> QueryCondition<Self>
Filter where this field equals the numeric value
v.