pub struct CryptoScreener { /* private fields */ }Expand description
Crypto screener with asset-class defaults
Implementations§
Source§impl CryptoScreener
impl CryptoScreener
Sourcepub async fn get(&self) -> Result<Vec<ScreenerRow>>
pub async fn get(&self) -> Result<Vec<ScreenerRow>>
Sourcepub fn select(
&mut self,
fields: impl IntoIterator<Item = FieldDef>,
) -> &mut Self
pub fn select( &mut self, fields: impl IntoIterator<Item = FieldDef>, ) -> &mut Self
Replaces selected columns
Sourcepub fn select_all(&mut self) -> &mut Self
pub fn select_all(&mut self) -> &mut Self
Reloads default columns via $crate::core::Screener::select_all.
§Panics
Panics if set_all_fields_fn was not registered in new() (typed constructors always do).
Sourcepub const fn set_range(&mut self, from_range: u32, to_range: u32) -> &mut Self
pub const fn set_range(&mut self, from_range: u32, to_range: u32) -> &mut Self
Sets the result window
Sourcepub fn where_condition(
&mut self,
condition: FieldCondition,
) -> Result<&mut Self>
pub fn where_condition( &mut self, condition: FieldCondition, ) -> Result<&mut Self>
Adds a filter from a $crate::filter::FieldCondition.
§Errors
Propagates $crate::core::Screener::where_condition errors.
Trait Implementations§
Source§impl Clone for CryptoScreener
impl Clone for CryptoScreener
Source§fn clone(&self) -> CryptoScreener
fn clone(&self) -> CryptoScreener
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 CryptoScreener
impl Debug for CryptoScreener
Auto Trait Implementations§
impl !RefUnwindSafe for CryptoScreener
impl !UnwindSafe for CryptoScreener
impl Freeze for CryptoScreener
impl Send for CryptoScreener
impl Sync for CryptoScreener
impl Unpin for CryptoScreener
impl UnsafeUnpin for CryptoScreener
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