Body

Enum Body 

Source
pub enum Body {
Show 20 variants AddOrder(AddOrder), Breach(LevelBreached), BrokenTrade { match_number: u64, }, CrossTrade(CrossTrade), DeleteOrder { reference: u64, }, Imbalance(ImbalanceIndicator), IpoQuotingPeriod(IpoQuotingPeriod), LULDAuctionCollar { stock: ArrayString8, ref_price: Price4, upper_price: Price4, lower_price: Price4, extension: u32, }, MwcbDeclineLevel { level1: Price8, level2: Price8, level3: Price8, }, NonCrossTrade(NonCrossTrade), OrderCancelled { reference: u64, cancelled: u32, }, OrderExecuted { reference: u64, executed: u32, match_number: u64, }, OrderExecutedWithPrice { reference: u64, executed: u32, match_number: u64, printable: bool, price: Price4, }, ParticipantPosition(MarketParticipantPosition), RegShoRestriction { stock: ArrayString8, action: RegShoAction, }, ReplaceOrder(ReplaceOrder), StockDirectory(StockDirectory), SystemEvent { event: EventCode, }, TradingAction { stock: ArrayString8, trading_state: TradingState, reason: ArrayString4, }, RetailPriceImprovementIndicator(RetailPriceImprovementIndicator),
}
Expand description

The message body. Refer to the protocol spec for interpretation.

Variants§

§

AddOrder(AddOrder)

§

Breach(LevelBreached)

§

BrokenTrade

Fields

§match_number: u64
§

CrossTrade(CrossTrade)

§

DeleteOrder

Fields

§reference: u64
§

Imbalance(ImbalanceIndicator)

§

IpoQuotingPeriod(IpoQuotingPeriod)

§

LULDAuctionCollar

Fields

§ref_price: Price4
§upper_price: Price4
§lower_price: Price4
§extension: u32
§

MwcbDeclineLevel

Fields

§level1: Price8
§level2: Price8
§level3: Price8
§

NonCrossTrade(NonCrossTrade)

§

OrderCancelled

Fields

§reference: u64
§cancelled: u32
§

OrderExecuted

Fields

§reference: u64
§executed: u32
§match_number: u64
§

OrderExecutedWithPrice

Fields

§reference: u64
§executed: u32
§match_number: u64
§printable: bool
§price: Price4
§

ParticipantPosition(MarketParticipantPosition)

§

RegShoRestriction

Fields

§

ReplaceOrder(ReplaceOrder)

§

StockDirectory(StockDirectory)

§

SystemEvent

Fields

§

TradingAction

Fields

§trading_state: TradingState
§

RetailPriceImprovementIndicator(RetailPriceImprovementIndicator)

Trait Implementations§

Source§

impl Clone for Body

Source§

fn clone(&self) -> Body

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Body

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Body

Source§

fn eq(&self, other: &Body) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Body

Auto Trait Implementations§

§

impl Freeze for Body

§

impl RefUnwindSafe for Body

§

impl Send for Body

§

impl Sync for Body

§

impl Unpin for Body

§

impl UnwindSafe for Body

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.