pub struct Config {
pub spot: Endpoints,
pub futures: Endpoints,
pub recv_window: u16,
}
Expand description
Configuration for the connection to API.
Fields§
§spot: Endpoints
spot connections configuration
futures: Endpoints
futures connections configuration
recv_window: u16
The number of milliseconds after timestamp
the request is valid for.
It is recommended to use a small recv_window
of 5_000 or less.
The max cannot go beyond 60_000.
More on it: https://binance-docs.github.io/apidocs/spot/en/#timing-security
Implementations§
Trait Implementations§
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