pub struct BybitOptions {
pub key: Option<String>,
pub secret: Option<String>,
pub http_url: BybitHttpUrl,
pub http_auth: BybitHttpAuth,
pub recv_window: Option<i32>,
pub request_config: RequestConfig,
pub websocket_url: BybitWebSocketUrl,
pub websocket_auth: bool,
pub websocket_topics: Vec<String>,
pub websocket_config: WebSocketConfig,
}Available on crate feature
bybit only.Expand description
A struct that represents a set of BybitOption s.
Fields§
§key: Option<String>see BybitOption::Key
secret: Option<String>§http_url: BybitHttpUrl§http_auth: BybitHttpAuth§recv_window: Option<i32>§request_config: RequestConfig§websocket_url: BybitWebSocketUrl§websocket_auth: bool§websocket_topics: Vec<String>§websocket_config: WebSocketConfigTrait Implementations§
Source§impl Clone for BybitOptions
impl Clone for BybitOptions
Source§fn clone(&self) -> BybitOptions
fn clone(&self) -> BybitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BybitOptions
impl Debug for BybitOptions
Source§impl Default for BybitOptions
impl Default for BybitOptions
Source§impl GetOptions<BybitOptions> for Client
impl GetOptions<BybitOptions> for Client
fn default_options(&self) -> &BybitOptions
fn default_options_mut(&mut self) -> &mut BybitOptions
Source§impl HandlerOptions for BybitOptions
impl HandlerOptions for BybitOptions
Source§type OptionItem = BybitOption
type OptionItem = BybitOption
The element of this set
fn update(&mut self, option: Self::OptionItem)
Auto Trait Implementations§
impl Freeze for BybitOptions
impl RefUnwindSafe for BybitOptions
impl Send for BybitOptions
impl Sync for BybitOptions
impl Unpin for BybitOptions
impl UnsafeUnpin for BybitOptions
impl UnwindSafe for BybitOptions
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