pub struct ClientBuilder { /* private fields */ }Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn region(self, region: Region) -> Self
pub fn num(self, num: usize) -> Self
pub fn safe(self, safe: bool) -> Self
pub fn timeout(self, seconds: u64) -> Self
pub fn proxy(self, proxy: Option<String>) -> Self
pub fn user_agent(self, value: Option<String>) -> Self
pub fn retry(self, retry: u8) -> Self
pub fn no_wait(self, value: bool) -> Self
pub fn no_rate_limit(self, value: bool) -> Self
pub fn state_dir(self, value: PathBuf) -> Self
pub fn endpoint(self, value: String) -> Self
pub fn limits(self, value: Limits) -> Self
pub fn clock(self, value: Arc<dyn Clock>) -> Self
Sourcepub fn on_rate_limit_progress(self, hook: ProgressHook) -> Self
pub fn on_rate_limit_progress(self, hook: ProgressHook) -> Self
Install a callback that fires before every cooldown / spacing
sleep cycle. Used by the CLI to emit [INFO] rate-limit ...
progress lines on stderr; library callers typically leave this
unset.
pub fn build(self) -> Result<Client>
Trait Implementations§
Source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
Source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
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 ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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> 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