#[repr(align(64))]pub struct SubscriptionOptions {Show 13 fields
pub id: String,
pub symbols: SmallVec<[String; 8]>,
pub subscription_type: SubscriptionType,
pub request_id: Option<u64>,
pub depth: Option<u32>,
pub update_speed_ms: Option<u64>,
pub snapshot_only: bool,
pub realtime_only: bool,
pub format: Option<String>,
pub api_key: Option<String>,
pub test: bool,
pub interval: Option<String>,
pub use_combined_streams: bool,
}Expand description
Cache-line aligned standardized subscription options Designed to work consistently across different exchange implementations
Fields§
§id: StringUnique identifier for the subscription
symbols: SmallVec<[String; 8]>List of symbols to subscribe to
subscription_type: SubscriptionTypeType of subscription
request_id: Option<u64>Optional request ID for tracking responses
depth: Option<u32>Depth level for order book subscriptions
update_speed_ms: Option<u64>Update speed in milliseconds (e.g., 100ms, 1000ms)
snapshot_only: boolWhether to only send snapshot data (no real-time updates)
realtime_only: boolWhether to only send real-time data (no initial snapshot)
format: Option<String>Optional format specifier (e.g., “DEFAULT”, “SIMPLE”)
api_key: Option<String>Optional API key for authenticated streams
test: boolWhether this is a test subscription
interval: Option<String>Interval for kline subscriptions (e.g., “1m”, “1h”, “1d”)
use_combined_streams: boolWhether to use combined streams (for multiple symbols)
Trait Implementations§
Source§impl Clone for SubscriptionOptions
impl Clone for SubscriptionOptions
Source§fn clone(&self) -> SubscriptionOptions
fn clone(&self) -> SubscriptionOptions
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 SubscriptionOptions
impl Debug for SubscriptionOptions
Auto Trait Implementations§
impl Freeze for SubscriptionOptions
impl RefUnwindSafe for SubscriptionOptions
impl Send for SubscriptionOptions
impl Sync for SubscriptionOptions
impl Unpin for SubscriptionOptions
impl UnwindSafe for SubscriptionOptions
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