pub struct Configuration {
pub base_path: String,
pub client: ClientWithMiddleware,
pub oauth_access_token: Option<String>,
pub user_agent: Option<String>,
}Expand description
Configuration for an API client.
This struct provides all the configuration options needed for making authenticated HTTP requests to Bitwarden APIs.
Fields§
§base_path: StringBase URL path for the API (e.g., “https://api.bitwarden.com” or “https://identity.bitwarden.com”).
client: ClientWithMiddlewareHTTP client with middleware support.
oauth_access_token: Option<String>OAuth access token for authentication.
user_agent: Option<String>User-Agent header value to be sent with requests. This is deprecated and kept only for backward compatibility. Instead we recommend setting the User-Agent via middleware or reqwest’s default headers.
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 · 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 Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe 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