pub struct Config<'a> {
pub rest_api_endpoint: &'a str,
pub ws_endpoint: &'a str,
pub recv_window: u16,
}Fields§
§rest_api_endpoint: &'a str§ws_endpoint: &'a str§recv_window: u16Implementations§
source§impl<'a> Config<'_>
impl<'a> Config<'_>
pub const DEFAULT_REST_API_ENDPOINT: &'a str = "https://api.bybit.com"
pub const DEFAULT_WS_ENDPOINT: &'a str = "wss://stream.bybit.com/v5"
pub const fn default() -> Self
pub const fn testnet() -> Self
pub const fn set_recv_window(self, recv_window: u16) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)