pub struct ScanConfig {
pub asset: Asset,
pub preset: Option<String>,
pub from: u32,
pub limit: u32,
pub search: Option<String>,
pub markets: Option<String>,
pub index: Option<String>,
pub sort_by: Option<String>,
pub ascending: bool,
pub filters: Vec<FieldCondition>,
}Expand description
CLI / env scan parameters for the TUI.
Fields§
§asset: AssetScreener asset class.
preset: Option<String>Optional field preset name.
from: u32Result window start.
limit: u32Max rows.
search: Option<String>Optional name search.
markets: Option<String>Stock markets CSV (const or wire).
index: Option<String>Stock index CSV (const or wire).
sort_by: Option<String>Sort field (const, technical, or label).
ascending: boolSort ascending when true (default descending).
filters: Vec<FieldCondition>Field conditions applied via where_condition.
Implementations§
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn resolve_fields(&self) -> Result<Vec<FieldDef>>
pub fn resolve_fields(&self) -> Result<Vec<FieldDef>>
Resolves selected fields (preset or asset defaults).
§Errors
Returns catalog errors from get_preset.
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
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 moreAuto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnsafeUnpin for ScanConfig
impl UnwindSafe for ScanConfig
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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