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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more