pub enum UnsubscribeCommand {
Show 16 variants
Data(UnsubscribeCustomData),
Instrument(UnsubscribeInstrument),
Instruments(UnsubscribeInstruments),
BookDeltas(UnsubscribeBookDeltas),
BookDepth(UnsubscribeBookDepth),
BookSnapshots(UnsubscribeBookSnapshots),
Quotes(UnsubscribeQuotes),
Trades(UnsubscribeTrades),
Bars(UnsubscribeBars),
MarkPrices(UnsubscribeMarkPrices),
IndexPrices(UnsubscribeIndexPrices),
FundingRates(UnsubscribeFundingRates),
InstrumentStatus(UnsubscribeInstrumentStatus),
InstrumentClose(UnsubscribeInstrumentClose),
OptionGreeks(UnsubscribeOptionGreeks),
OptionChain(UnsubscribeOptionChain),
}Variants§
Data(UnsubscribeCustomData)
Instrument(UnsubscribeInstrument)
Instruments(UnsubscribeInstruments)
BookDeltas(UnsubscribeBookDeltas)
BookDepth(UnsubscribeBookDepth)
BookSnapshots(UnsubscribeBookSnapshots)
Quotes(UnsubscribeQuotes)
Trades(UnsubscribeTrades)
Bars(UnsubscribeBars)
MarkPrices(UnsubscribeMarkPrices)
IndexPrices(UnsubscribeIndexPrices)
FundingRates(UnsubscribeFundingRates)
InstrumentStatus(UnsubscribeInstrumentStatus)
InstrumentClose(UnsubscribeInstrumentClose)
OptionGreeks(UnsubscribeOptionGreeks)
OptionChain(UnsubscribeOptionChain)
Implementations§
Source§impl UnsubscribeCommand
impl UnsubscribeCommand
Sourcepub fn instrument_ids(&self) -> Option<&[InstrumentId]>
pub fn instrument_ids(&self) -> Option<&[InstrumentId]>
Returns the instrument IDs for an instrument subscription, if applicable.
Sourcepub fn with_instrument_ids(
&self,
instrument_ids: impl IntoInstrumentIds,
) -> Option<Self>
pub fn with_instrument_ids( &self, instrument_ids: impl IntoInstrumentIds, ) -> Option<Self>
Projects an instrument subscription onto the supplied IDs, preserving its metadata.
§Panics
Panics if an instrument subscription receives an empty identifier list.
Sourcepub fn bar_types(&self) -> Option<&[BarType]>
pub fn bar_types(&self) -> Option<&[BarType]>
Returns the bar types for a bar subscription, if applicable.
Sourcepub fn with_bar_types(&self, bar_types: impl IntoBarTypes) -> Option<Self>
pub fn with_bar_types(&self, bar_types: impl IntoBarTypes) -> Option<Self>
Projects a bar subscription onto the supplied types, preserving its metadata.
§Panics
Panics if a bar subscription receives an empty list.
Sourcepub fn group(commands: Vec<Self>) -> Vec<Self>
pub fn group(commands: Vec<Self>) -> Vec<Self>
Groups instrument releases with matching routing and command metadata.
Bar releases with matching metadata merge into one command, with duplicate types removed. Other commands remain separate.
§Panics
Panics if an instrument or bar release group has no members.
pub fn command_id(&self) -> UUID4
pub fn client_id(&self) -> Option<&ClientId>
pub fn venue(&self) -> Option<&Venue>
pub fn ts_init(&self) -> UnixNanos
pub fn correlation_id(&self) -> Option<UUID4>
Trait Implementations§
Source§impl Clone for UnsubscribeCommand
impl Clone for UnsubscribeCommand
Source§impl Debug for UnsubscribeCommand
impl Debug for UnsubscribeCommand
Source§impl<'de> Deserialize<'de> for UnsubscribeCommand
impl<'de> Deserialize<'de> for UnsubscribeCommand
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
Source§impl PartialEq for UnsubscribeCommand
impl PartialEq for UnsubscribeCommand
Auto Trait Implementations§
impl Freeze for UnsubscribeCommand
impl RefUnwindSafe for UnsubscribeCommand
impl Send for UnsubscribeCommand
impl Sync for UnsubscribeCommand
impl Unpin for UnsubscribeCommand
impl UnsafeUnpin for UnsubscribeCommand
impl UnwindSafe for UnsubscribeCommand
Blanket Implementations§
impl<T> Allocation for T
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