pub struct SubscribeSuccess {
pub response_type: String,
pub instruments: Vec<InstrumentKey>,
pub depth: Option<u32>,
pub time_frame: Option<String>,
}Expand description
A subscription confirmation in the flat form (server to client).
The parser does not produce this type: confirmations inside MarketDataMessage use
SubscribeSuccessPayload. It is kept for code that parses a frame itself.
Fields§
§response_type: StringKind of the confirmation, for example OrderBookSuccess.
instruments: Vec<InstrumentKey>The instruments the subscription covers, if the broker lists them.
depth: Option<u32>Order book depth, for an order book subscription.
time_frame: Option<String>Candle time frame, for a candle subscription.
Trait Implementations§
Source§impl Clone for SubscribeSuccess
impl Clone for SubscribeSuccess
Source§fn clone(&self) -> SubscribeSuccess
fn clone(&self) -> SubscribeSuccess
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 SubscribeSuccess
impl Debug for SubscribeSuccess
Source§impl<'de> Deserialize<'de> for SubscribeSuccess
impl<'de> Deserialize<'de> for SubscribeSuccess
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 SubscribeSuccess
impl RefUnwindSafe for SubscribeSuccess
impl Send for SubscribeSuccess
impl Sync for SubscribeSuccess
impl Unpin for SubscribeSuccess
impl UnsafeUnpin for SubscribeSuccess
impl UnwindSafe for SubscribeSuccess
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