pub struct SubscriptionRequest {
pub channels: SmallVec<[SmartString; 8]>,
pub instruments: Option<SmallVec<[InstrumentId; 8]>>,
pub auth: Option<AuthRequest>,
}Expand description
Subscription request for user data streams
Fields§
§channels: SmallVec<[SmartString; 8]>Channels to subscribe to
instruments: Option<SmallVec<[InstrumentId; 8]>>Instruments to subscribe for (if channel-specific)
auth: Option<AuthRequest>Authentication for private channels
Trait Implementations§
Source§impl Clone for SubscriptionRequest
impl Clone for SubscriptionRequest
Source§fn clone(&self) -> SubscriptionRequest
fn clone(&self) -> SubscriptionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscriptionRequest
impl Debug for SubscriptionRequest
Source§impl<'de> Deserialize<'de> for SubscriptionRequest
impl<'de> Deserialize<'de> for SubscriptionRequest
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 SubscriptionRequest
impl RefUnwindSafe for SubscriptionRequest
impl Send for SubscriptionRequest
impl Sync for SubscriptionRequest
impl Unpin for SubscriptionRequest
impl UnwindSafe for SubscriptionRequest
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