pub struct StreamSubscription {
pub channel: String,
pub tracking_id: String,
pub responses_debounced: Option<bool>,
pub symbol: Option<String>,
pub market_id: Option<String>,
pub outcome: Option<String>,
pub extra: Map<String, Value>,
}Fields§
§channel: String§tracking_id: String§responses_debounced: Option<bool>§symbol: Option<String>§market_id: Option<String>§outcome: Option<String>§extra: Map<String, Value>Implementations§
Source§impl StreamSubscription
impl StreamSubscription
pub fn new(channel: impl Into<String>) -> Self
pub fn order_snapshot(symbol: impl Into<String>) -> Self
pub fn market_data_lite(symbol: impl Into<String>) -> Self
pub fn with_tracking_id(self, tracking_id: impl Into<String>) -> Self
pub fn with_responses_debounced(self, responses_debounced: bool) -> Self
pub fn with_symbol(self, symbol: impl Into<String>) -> Self
pub fn with_market_id(self, market_id: impl Into<String>) -> Self
pub fn with_outcome(self, outcome: impl Into<String>) -> Self
pub fn insert_extra( self, key: impl Into<String>, value: impl Into<Value>, ) -> Self
Trait Implementations§
Source§impl Clone for StreamSubscription
impl Clone for StreamSubscription
Source§fn clone(&self) -> StreamSubscription
fn clone(&self) -> StreamSubscription
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 StreamSubscription
impl Debug for StreamSubscription
Source§impl<'de> Deserialize<'de> for StreamSubscription
impl<'de> Deserialize<'de> for StreamSubscription
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 StreamSubscription
impl RefUnwindSafe for StreamSubscription
impl Send for StreamSubscription
impl Sync for StreamSubscription
impl Unpin for StreamSubscription
impl UnsafeUnpin for StreamSubscription
impl UnwindSafe for StreamSubscription
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