pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for creating a custom Config.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn rest_api_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn rest_api_endpoint(self, endpoint: impl Into<String>) -> Self
Set the REST API endpoint.
Sourcepub fn ws_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn ws_endpoint(self, endpoint: impl Into<String>) -> Self
Set the WebSocket endpoint.
Sourcepub fn recv_window(self, recv_window: u64) -> Self
pub fn recv_window(self, recv_window: u64) -> Self
Set the receive window in milliseconds.
Sourcepub fn timeout_secs(self, secs: u64) -> Self
pub fn timeout_secs(self, secs: u64) -> Self
Set the request timeout from seconds.
Sourcepub fn binance_us(self, is_binance_us: bool) -> Self
pub fn binance_us(self, is_binance_us: bool) -> Self
Configure for Binance.US.
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
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 moreSource§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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