pub struct LookupOptions {
pub lookup_type: LookupType,
pub count: u32,
pub include_logo: bool,
pub fetch_pricing_data: bool,
pub region: Option<Region>,
}Expand description
Lookup configuration options
Fields§
§lookup_type: LookupTypeAsset type to search for (default: All)
count: u32Maximum number of results (default: 25)
include_logo: boolInclude logo URLs by fetching from quotes endpoint (default: false) Note: This requires an additional API call for symbols returned
fetch_pricing_data: boolInclude pricing data (default: true)
region: Option<Region>Region for language/region settings. If None, uses client default.
Implementations§
Source§impl LookupOptions
impl LookupOptions
Sourcepub fn lookup_type(self, lookup_type: LookupType) -> Self
pub fn lookup_type(self, lookup_type: LookupType) -> Self
Set the asset type to look up
Sourcepub fn include_logo(self, include: bool) -> Self
pub fn include_logo(self, include: bool) -> Self
Enable or disable logo URL fetching Note: When enabled, an additional API call is made to fetch logos
Sourcepub fn fetch_pricing_data(self, fetch: bool) -> Self
pub fn fetch_pricing_data(self, fetch: bool) -> Self
Enable or disable pricing data
Trait Implementations§
Source§impl Clone for LookupOptions
impl Clone for LookupOptions
Source§fn clone(&self) -> LookupOptions
fn clone(&self) -> LookupOptions
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 LookupOptions
impl Debug for LookupOptions
Auto Trait Implementations§
impl Freeze for LookupOptions
impl RefUnwindSafe for LookupOptions
impl Send for LookupOptions
impl Sync for LookupOptions
impl Unpin for LookupOptions
impl UnwindSafe for LookupOptions
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