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: u64Implementations§
Source§impl Config
impl Config
pub fn testnet() -> Self
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§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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