pub struct DocarooConfig {
pub api_key: String,
pub base_url: String,
pub http_client: Option<Client>,
}
Expand description
Configuration for the Docaroo client
Fields§
§api_key: String
API key for authentication
base_url: String
Base URL for the API (defaults to production)
http_client: Option<Client>
HTTP client to use (defaults to new client)
Implementations§
Source§impl DocarooConfig
impl DocarooConfig
Sourcepub fn builder() -> DocarooConfigBuilder
pub fn builder() -> DocarooConfigBuilder
Create an instance of DocarooConfig
using the builder syntax
Trait Implementations§
Source§impl Clone for DocarooConfig
impl Clone for DocarooConfig
Source§fn clone(&self) -> DocarooConfig
fn clone(&self) -> DocarooConfig
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 moreAuto Trait Implementations§
impl Freeze for DocarooConfig
impl !RefUnwindSafe for DocarooConfig
impl Send for DocarooConfig
impl Sync for DocarooConfig
impl Unpin for DocarooConfig
impl !UnwindSafe for DocarooConfig
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