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 accessing endpoints.
Fields§
§base_path: StringThe base path of the server.
This is prepended to the request path.
user_agent: Option<String>The user agent string to use.
client: ClientClient to use for the request.
basic_auth: Option<BasicAuth>Basic http auth data.
oauth_access_token: Option<String>OAuth access token.
This is set as a bearer token.
bearer_access_token: Option<String>Bearer token.
api_key: Option<ApiKey>API key to send.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn new() -> Configuration
pub fn new() -> Configuration
Create default configuration.
The base path is set to https://api.spacetraders.io/v2 by default.
The user agent is set to openapi-rust/2.0.0 by default.
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 moreSource§impl Debug for Configuration
impl Debug for Configuration
Auto 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