pub struct Config {
pub rest_api_endpoint: String,
pub ws_endpoint: String,
pub futures_rest_api_endpoint: String,
pub futures_ws_endpoint: String,
pub recv_window: u64,
}Fields
rest_api_endpoint: Stringws_endpoint: Stringfutures_rest_api_endpoint: Stringfutures_ws_endpoint: Stringrecv_window: u64Implementations
sourceimpl Config
impl Config
sourcepub fn default() -> Config
pub fn default() -> Config
Configure binance with default production endpoints
Examples
use binance::config::Config;
let config = Config::default();sourcepub fn testnet() -> Config
pub fn testnet() -> Config
Configure binance with all testnet endpoints
Examples
use binance::config::Config;
let config = Config::testnet();pub fn set_rest_api_endpoint<T: Into<String>>(self, rest_api_endpoint: T) -> Self
pub fn set_ws_endpoint<T: Into<String>>(self, ws_endpoint: T) -> Self
pub fn set_futures_rest_api_endpoint<T: Into<String>>(
self,
futures_rest_api_endpoint: T
) -> Self
pub fn set_futures_ws_endpoint<T: Into<String>>(
self,
futures_ws_endpoint: T
) -> Self
pub fn set_recv_window(self, recv_window: u64) -> Self
Trait Implementations
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.