pub struct ApiClientOptions {
pub api_url: String,
pub api_token: Option<String>,
pub use_public_proxy: bool,
pub org_slug: Option<String>,
}Expand description
Options for constructing an ApiClient.
Fields§
§api_url: String§api_token: Option<String>§use_public_proxy: boolWhen true, the client will use the public patch API proxy which only provides access to free patches without authentication.
org_slug: Option<String>Organization slug for authenticated API access. Required when using authenticated API (not public proxy).
Trait Implementations§
Source§impl Clone for ApiClientOptions
impl Clone for ApiClientOptions
Source§fn clone(&self) -> ApiClientOptions
fn clone(&self) -> ApiClientOptions
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 ApiClientOptions
impl RefUnwindSafe for ApiClientOptions
impl Send for ApiClientOptions
impl Sync for ApiClientOptions
impl Unpin for ApiClientOptions
impl UnsafeUnpin for ApiClientOptions
impl UnwindSafe for ApiClientOptions
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