pub struct SubscribeSuccessPayload {
pub instruments: Vec<InstrumentKey>,
pub depth: Option<u32>,
pub time_frame: Option<String>,
}Expand description
The body of a subscription confirmation.
The docs show the instrument as flat ticker and classCode fields in the confirmation. This type
reads an instruments list. If the broker sends the flat form, instruments stays empty. Not verified
against the live API which form the broker uses.
Fields§
§instruments: Vec<InstrumentKey>The instruments the subscription covers, if the broker lists them. Empty otherwise.
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 SubscribeSuccessPayload
impl Clone for SubscribeSuccessPayload
Source§fn clone(&self) -> SubscribeSuccessPayload
fn clone(&self) -> SubscribeSuccessPayload
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 SubscribeSuccessPayload
impl Debug for SubscribeSuccessPayload
Source§impl<'de> Deserialize<'de> for SubscribeSuccessPayload
impl<'de> Deserialize<'de> for SubscribeSuccessPayload
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 SubscribeSuccessPayload
impl RefUnwindSafe for SubscribeSuccessPayload
impl Send for SubscribeSuccessPayload
impl Sync for SubscribeSuccessPayload
impl Unpin for SubscribeSuccessPayload
impl UnsafeUnpin for SubscribeSuccessPayload
impl UnwindSafe for SubscribeSuccessPayload
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