pub struct ClientBuilder { /* private fields */ }Expand description
Builder for a composed Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn network(self, network: impl Into<String>) -> Self
pub fn network(self, network: impl Into<String>) -> Self
Selects the network preset (default "testnet").
Sourcepub fn chain_id(self, chain_id: impl Into<String>) -> Self
pub fn chain_id(self, chain_id: impl Into<String>) -> Self
Overrides the resolved chain ID (meaningful only for mainnet).
Sourcepub fn http_client(self, http: Client) -> Self
pub fn http_client(self, http: Client) -> Self
Supplies the reqwest::Client used for all requests. Optional.
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 moreSource§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for ClientBuilder
impl !UnwindSafe for ClientBuilder
impl Freeze for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin 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