pub struct UnsubscriptionRequest {
pub subscription_type: SubscriptionType,
pub symbols: Option<Vec<String>>,
pub account_id: Option<String>,
}Expand description
Unsubscription request for WebSocket messages.
Fields§
§subscription_type: SubscriptionTypeSubscription type
symbols: Option<Vec<String>>Symbols to unsubscribe from (for quote subscriptions)
account_id: Option<String>Account ID to unsubscribe from (for order, account, and trade subscriptions)
Implementations§
Source§impl UnsubscriptionRequest
impl UnsubscriptionRequest
Sourcepub fn new_account(account_id: String) -> Self
pub fn new_account(account_id: String) -> Self
Create a new account unsubscription request.
Trait Implementations§
Source§impl Clone for UnsubscriptionRequest
impl Clone for UnsubscriptionRequest
Source§fn clone(&self) -> UnsubscriptionRequest
fn clone(&self) -> UnsubscriptionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 UnsubscriptionRequest
impl Debug for UnsubscriptionRequest
Source§impl<'de> Deserialize<'de> for UnsubscriptionRequest
impl<'de> Deserialize<'de> for UnsubscriptionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnsubscriptionRequest
impl RefUnwindSafe for UnsubscriptionRequest
impl Send for UnsubscriptionRequest
impl Sync for UnsubscriptionRequest
impl Unpin for UnsubscriptionRequest
impl UnwindSafe for UnsubscriptionRequest
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