pub struct Configuration {
pub base_path: String,
pub user_agent: Option<String>,
pub client: Client,
}Expand description
Configuration for the Catalog API client.
The defaults target the public data.gov endpoint. Override base_path
to point at a staging instance or at https://api.data.gov/catalog
once the announced migration lands.
Fields§
§base_path: StringBase URL for the Catalog API (e.g. https://catalog.data.gov).
user_agent: Option<String>User-Agent header sent with every request.
client: ClientShared reqwest client. Cheap to clone; reuse across requests.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn new() -> Self
pub fn new() -> Self
Build a 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