#[non_exhaustive]pub struct RestCapabilities {
pub market_data: bool,
pub account: bool,
pub spot_trading: bool,
pub futures_trading: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.market_data: bool§account: bool§spot_trading: bool§futures_trading: boolImplementations§
Source§impl RestCapabilities
impl RestCapabilities
pub fn with_market_data(self) -> Self
pub fn with_account(self) -> Self
pub fn with_spot_trading(self) -> Self
pub fn with_futures_trading(self) -> Self
Trait Implementations§
Source§impl Clone for RestCapabilities
impl Clone for RestCapabilities
Source§fn clone(&self) -> RestCapabilities
fn clone(&self) -> RestCapabilities
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 RestCapabilities
impl Debug for RestCapabilities
Source§impl Default for RestCapabilities
impl Default for RestCapabilities
Source§fn default() -> RestCapabilities
fn default() -> RestCapabilities
Returns the “default value” for a type. Read more
Source§impl PartialEq for RestCapabilities
impl PartialEq for RestCapabilities
Source§fn eq(&self, other: &RestCapabilities) -> bool
fn eq(&self, other: &RestCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RestCapabilities
impl StructuralPartialEq for RestCapabilities
Auto Trait Implementations§
impl Freeze for RestCapabilities
impl RefUnwindSafe for RestCapabilities
impl Send for RestCapabilities
impl Sync for RestCapabilities
impl Unpin for RestCapabilities
impl UnsafeUnpin for RestCapabilities
impl UnwindSafe for RestCapabilities
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