pub struct WebSearchConfig {
pub providers: Vec<String>,
pub google_api_key: Option<String>,
pub google_cx: Option<String>,
pub bing_api_key: Option<String>,
pub weights: HashMap<String, f64>,
pub merge_strategy: MergeStrategy,
}Expand description
Configuration for the web search engine
Fields§
§providers: Vec<String>Providers to use by default
google_api_key: Option<String>Google API key
google_cx: Option<String>Google Custom Search Engine ID
bing_api_key: Option<String>Bing API key
weights: HashMap<String, f64>Default weights for providers
merge_strategy: MergeStrategyDefault merge strategy
Implementations§
Trait Implementations§
Source§impl Clone for WebSearchConfig
impl Clone for WebSearchConfig
Source§fn clone(&self) -> WebSearchConfig
fn clone(&self) -> WebSearchConfig
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 WebSearchConfig
impl Debug for WebSearchConfig
Source§impl Default for WebSearchConfig
impl Default for WebSearchConfig
Source§fn default() -> WebSearchConfig
fn default() -> WebSearchConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebSearchConfig
impl RefUnwindSafe for WebSearchConfig
impl Send for WebSearchConfig
impl Sync for WebSearchConfig
impl Unpin for WebSearchConfig
impl UnsafeUnpin for WebSearchConfig
impl UnwindSafe for WebSearchConfig
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