pub struct Config {
pub rest_api_endpoint: String,
pub ws_endpoint: String,
pub recv_window: u64,
pub timeout: Option<Duration>,
pub binance_us: bool,
}Expand description
Configuration for the Binance client.
Fields§
§rest_api_endpoint: StringREST API base URL.
ws_endpoint: StringWebSocket base URL.
recv_window: u64Receive window in milliseconds. This is the number of milliseconds after the timestamp that the request is valid for.
timeout: Option<Duration>Request timeout duration.
binance_us: boolWhether this is configured for Binance.US.
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Create a new configuration builder.
Sourcepub fn binance_us() -> Self
pub fn binance_us() -> Self
Create a configuration for Binance.US.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.