pub struct SearchOptions {
pub quotes_count: u32,
pub news_count: u32,
pub enable_fuzzy_query: bool,
pub enable_logo_url: bool,
pub enable_research_reports: bool,
pub enable_cultural_assets: bool,
pub recommend_count: u32,
pub region: Option<Region>,
}Expand description
Search configuration options
Fields§
§quotes_count: u32Maximum number of quote results (default: 10)
news_count: u32Maximum number of news results (default: 0 = disabled)
enable_fuzzy_query: boolEnable fuzzy matching for typos (default: false)
enable_logo_url: boolEnable logo URLs in results (default: true)
enable_research_reports: boolEnable research reports in results (default: false)
enable_cultural_assets: boolEnable cultural assets (NFT indices) in results (default: false)
recommend_count: u32Recommended count (default: 5)
region: Option<Region>Region for language/region settings. If None, uses client default.
Implementations§
Source§impl SearchOptions
impl SearchOptions
Sourcepub fn quotes_count(self, count: u32) -> Self
pub fn quotes_count(self, count: u32) -> Self
Set maximum quote results
Sourcepub fn news_count(self, count: u32) -> Self
pub fn news_count(self, count: u32) -> Self
Set maximum news results
Sourcepub fn enable_fuzzy_query(self, enable: bool) -> Self
pub fn enable_fuzzy_query(self, enable: bool) -> Self
Enable or disable fuzzy query matching
Sourcepub fn enable_logo_url(self, enable: bool) -> Self
pub fn enable_logo_url(self, enable: bool) -> Self
Enable or disable logo URLs
Sourcepub fn enable_research_reports(self, enable: bool) -> Self
pub fn enable_research_reports(self, enable: bool) -> Self
Enable or disable research reports
Sourcepub fn enable_cultural_assets(self, enable: bool) -> Self
pub fn enable_cultural_assets(self, enable: bool) -> Self
Enable or disable cultural assets (NFT indices)
Sourcepub fn recommend_count(self, count: u32) -> Self
pub fn recommend_count(self, count: u32) -> Self
Set recommend count
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 SearchOptions
impl Debug for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnwindSafe for SearchOptions
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