pub struct SearchBackendConfig {
pub kind: String,
pub api_key_env: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub disabled: bool,
}Fields§
§kind: Stringexa | tavily | searxng
api_key_env: Option<String>Environment variable holding the key. Preferred over api_key.
api_key: Option<String>§base_url: Option<String>Required for searxng (your instance); optional override elsewhere.
disabled: boolImplementations§
Source§impl SearchBackendConfig
impl SearchBackendConfig
pub fn resolve_api_key(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for SearchBackendConfig
impl Clone for SearchBackendConfig
Source§fn clone(&self) -> SearchBackendConfig
fn clone(&self) -> SearchBackendConfig
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 SearchBackendConfig
impl Debug for SearchBackendConfig
Source§impl Default for SearchBackendConfig
impl Default for SearchBackendConfig
Source§fn default() -> SearchBackendConfig
fn default() -> SearchBackendConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchBackendConfigwhere
SearchBackendConfig: Default,
impl<'de> Deserialize<'de> for SearchBackendConfigwhere
SearchBackendConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchBackendConfig
impl RefUnwindSafe for SearchBackendConfig
impl Send for SearchBackendConfig
impl Sync for SearchBackendConfig
impl Unpin for SearchBackendConfig
impl UnsafeUnpin for SearchBackendConfig
impl UnwindSafe for SearchBackendConfig
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