pub struct TickerSubscription {
pub ticket: String,
pub data_type: String,
pub codes: SmallVec<[String; 8]>,
pub is_only_snapshot: Option<bool>,
pub is_only_realtime: Option<bool>,
}Expand description
WebSocket subscription request for tickers
Fields§
§ticket: StringClient-generated ticket ID
data_type: StringType of data (always “ticker” for this struct)
codes: SmallVec<[String; 8]>Market codes to subscribe to
is_only_snapshot: Option<bool>Whether to only get snapshot data
is_only_realtime: Option<bool>Whether to only get realtime data
Trait Implementations§
Source§impl Clone for TickerSubscription
impl Clone for TickerSubscription
Source§fn clone(&self) -> TickerSubscription
fn clone(&self) -> TickerSubscription
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 TickerSubscription
impl Debug for TickerSubscription
Auto Trait Implementations§
impl Freeze for TickerSubscription
impl RefUnwindSafe for TickerSubscription
impl Send for TickerSubscription
impl Sync for TickerSubscription
impl Unpin for TickerSubscription
impl UnwindSafe for TickerSubscription
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