pub struct ExaConfig { /* private fields */ }Expand description
Configuration for the Exa client
Debug output automatically redacts api_key via SecretString.
Implementations§
Source§impl ExaConfig
impl ExaConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new configuration with default settings
Attempts to read from environment variables:
EXA_API_KEYfor API key authenticationEXA_BASE_URLfor custom API base URL (defaults tohttps://api.exa.ai)
Sourcepub fn with_api_base(self, base: impl Into<String>) -> Self
pub fn with_api_base(self, base: impl Into<String>) -> Self
Sets the API base URL
Sourcepub fn with_api_key(self, key: impl Into<String>) -> Self
pub fn with_api_key(self, key: impl Into<String>) -> Self
Sets the API key
Trait Implementations§
Source§impl Config for ExaConfig
impl Config for ExaConfig
Auto Trait Implementations§
impl Freeze for ExaConfig
impl RefUnwindSafe for ExaConfig
impl Send for ExaConfig
impl Sync for ExaConfig
impl Unpin for ExaConfig
impl UnwindSafe for ExaConfig
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