pub struct Configuration {
pub base_path: String,
pub user_agent: Option<String>,
pub client: Client,
pub basic_auth: Option<BasicAuth>,
pub oauth_access_token: Option<String>,
pub bearer_access_token: Option<String>,
pub api_key: Option<ApiKey>,
}Expand description
Configuration for the CKAN client
Fields§
§base_path: StringBase URL for the CKAN API (e.g., https://catalog.data.gov/api/3)
user_agent: Option<String>User agent string for HTTP requests
client: ClientHTTP client instance
basic_auth: Option<BasicAuth>Basic authentication credentials (username, optional password)
oauth_access_token: Option<String>OAuth access token
bearer_access_token: Option<String>Bearer token for authentication
api_key: Option<ApiKey>API key for CKAN authentication
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn new() -> Configuration
pub fn new() -> Configuration
Create a new configuration with default values
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 Configuration
impl Debug for Configuration
Auto Trait Implementations§
impl !RefUnwindSafe for Configuration
impl !UnwindSafe for Configuration
impl Freeze for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
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