pub struct UniClientBuilder { /* private fields */ }Expand description
Builder for UniClient.
Implementations§
Source§impl UniClientBuilder
impl UniClientBuilder
Sourcepub fn access_key_id(self, value: impl Into<String>) -> Self
pub fn access_key_id(self, value: impl Into<String>) -> Self
Sets the access key ID included with every request.
Sourcepub fn access_key_secret(self, value: impl Into<String>) -> Self
pub fn access_key_secret(self, value: impl Into<String>) -> Self
Sets the secret used to sign requests.
Sourcepub fn user_agent(self, value: impl Into<String>) -> Self
pub fn user_agent(self, value: impl Into<String>) -> Self
Overrides the SDK user agent.
Sourcepub fn timeout(self, value: Duration) -> Self
pub fn timeout(self, value: Duration) -> Self
Sets the timeout applied to the entire HTTP request.
Sourcepub fn http_client(self, value: Client) -> Self
pub fn http_client(self, value: Client) -> Self
Uses an existing reqwest client. Timeout and redirect settings on this builder do not alter a custom client.
Trait Implementations§
Source§impl Clone for UniClientBuilder
impl Clone for UniClientBuilder
Source§fn clone(&self) -> UniClientBuilder
fn clone(&self) -> UniClientBuilder
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 moreSource§impl Debug for UniClientBuilder
impl Debug for UniClientBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for UniClientBuilder
impl !UnwindSafe for UniClientBuilder
impl Freeze for UniClientBuilder
impl Send for UniClientBuilder
impl Sync for UniClientBuilder
impl Unpin for UniClientBuilder
impl UnsafeUnpin for UniClientBuilder
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