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§
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 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