pub struct AssetClientBuilder { /* private fields */ }Expand description
Builder for configuring an AssetClient.
Implementations§
Source§impl AssetClientBuilder
impl AssetClientBuilder
pub fn new(api_key: impl Into<String>) -> Self
Sourcepub fn http_client(self, client: Client) -> Self
pub fn http_client(self, client: Client) -> Self
Use a custom reqwest::Client (e.g. custom timeout, proxy, TLS config).
pub fn build(self) -> AssetClient
Trait Implementations§
Source§impl Clone for AssetClientBuilder
impl Clone for AssetClientBuilder
Source§fn clone(&self) -> AssetClientBuilder
fn clone(&self) -> AssetClientBuilder
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 AssetClientBuilder
impl !RefUnwindSafe for AssetClientBuilder
impl Send for AssetClientBuilder
impl Sync for AssetClientBuilder
impl Unpin for AssetClientBuilder
impl UnsafeUnpin for AssetClientBuilder
impl !UnwindSafe for AssetClientBuilder
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