Struct binance::config::Config [−][src]
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: String
ws_endpoint: String
futures_rest_api_endpoint: String
futures_ws_endpoint: String
recv_window: u64
Implementations
Configure binance with default production endpoints
Examples
use binance::config::Config;
let config = Config::default();
Configure binance with all testnet endpoints
Examples
use binance::config::Config;
let config = Config::testnet();
pub fn set_futures_rest_api_endpoint<T: Into<String>>(
self,
futures_rest_api_endpoint: T
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more