Skip to main content

ExecutionReport

Struct ExecutionReport 

Source
pub struct ExecutionReport {
    pub message: Message,
}
Expand description

ExecutionReport is the fix41 ExecutionReport type, MsgType = 8.

Fields§

§message: Message

Implementations§

Source§

impl ExecutionReport

Source

pub fn new( order_id: OrderIDField, exec_id: ExecIDField, exec_trans_type: ExecTransTypeField, exec_type: ExecTypeField, ord_status: OrdStatusField, symbol: SymbolField, side: SideField, order_qty: OrderQtyField, last_shares: LastSharesField, last_px: LastPxField, leaves_qty: LeavesQtyField, cum_qty: CumQtyField, avg_px: AvgPxField, ) -> Self

Creates a new ExecutionReport with required fields.

Source

pub fn from_message(msg: Message) -> Self

Creates a ExecutionReport from an existing Message.

Source

pub fn to_message(self) -> Message

Returns the underlying Message.

Source

pub fn set_account(&mut self, v: String)

Sets Account, Tag 1.

Source

pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum>

Gets Account, Tag 1.

Source

pub fn has_account(&self) -> bool

Returns true if Account is present, Tag 1.

Source

pub fn set_avg_px(&mut self, val: Decimal, scale: i32)

Sets AvgPx, Tag 6.

Source

pub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets AvgPx, Tag 6.

Source

pub fn has_avg_px(&self) -> bool

Returns true if AvgPx is present, Tag 6.

Source

pub fn set_cl_ord_id(&mut self, v: String)

Sets ClOrdID, Tag 11.

Source

pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets ClOrdID, Tag 11.

Source

pub fn has_cl_ord_id(&self) -> bool

Returns true if ClOrdID is present, Tag 11.

Source

pub fn set_client_id(&mut self, v: String)

Sets ClientID, Tag 109.

Source

pub fn get_client_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets ClientID, Tag 109.

Source

pub fn has_client_id(&self) -> bool

Returns true if ClientID is present, Tag 109.

Source

pub fn set_comm_type(&mut self, v: String)

Sets CommType, Tag 13.

Source

pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum>

Gets CommType, Tag 13.

Source

pub fn has_comm_type(&self) -> bool

Returns true if CommType is present, Tag 13.

Source

pub fn set_commission(&mut self, val: Decimal, scale: i32)

Sets Commission, Tag 12.

Source

pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets Commission, Tag 12.

Source

pub fn has_commission(&self) -> bool

Returns true if Commission is present, Tag 12.

Source

pub fn set_cum_qty(&mut self, val: Decimal, scale: i32)

Sets CumQty, Tag 14.

Source

pub fn get_cum_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets CumQty, Tag 14.

Source

pub fn has_cum_qty(&self) -> bool

Returns true if CumQty is present, Tag 14.

Source

pub fn set_currency(&mut self, v: String)

Sets Currency, Tag 15.

Source

pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum>

Gets Currency, Tag 15.

Source

pub fn has_currency(&self) -> bool

Returns true if Currency is present, Tag 15.

Source

pub fn set_exec_broker(&mut self, v: String)

Sets ExecBroker, Tag 76.

Source

pub fn get_exec_broker(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecBroker, Tag 76.

Source

pub fn has_exec_broker(&self) -> bool

Returns true if ExecBroker is present, Tag 76.

Source

pub fn set_exec_id(&mut self, v: String)

Sets ExecID, Tag 17.

Source

pub fn get_exec_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecID, Tag 17.

Source

pub fn has_exec_id(&self) -> bool

Returns true if ExecID is present, Tag 17.

Source

pub fn set_exec_inst(&mut self, v: String)

Sets ExecInst, Tag 18.

Source

pub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecInst, Tag 18.

Source

pub fn has_exec_inst(&self) -> bool

Returns true if ExecInst is present, Tag 18.

Source

pub fn set_exec_ref_id(&mut self, v: String)

Sets ExecRefID, Tag 19.

Source

pub fn get_exec_ref_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecRefID, Tag 19.

Source

pub fn has_exec_ref_id(&self) -> bool

Returns true if ExecRefID is present, Tag 19.

Source

pub fn set_exec_trans_type(&mut self, v: String)

Sets ExecTransType, Tag 20.

Source

pub fn get_exec_trans_type(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecTransType, Tag 20.

Source

pub fn has_exec_trans_type(&self) -> bool

Returns true if ExecTransType is present, Tag 20.

Source

pub fn set_exec_type(&mut self, v: String)

Sets ExecType, Tag 150.

Source

pub fn get_exec_type(&self) -> Result<String, MessageRejectErrorEnum>

Gets ExecType, Tag 150.

Source

pub fn has_exec_type(&self) -> bool

Returns true if ExecType is present, Tag 150.

Source

pub fn set_expire_time(&mut self, v: Timestamp)

Sets ExpireTime, Tag 126.

Source

pub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>

Gets ExpireTime, Tag 126.

Source

pub fn has_expire_time(&self) -> bool

Returns true if ExpireTime is present, Tag 126.

Source

pub fn set_fut_sett_date(&mut self, v: String)

Sets FutSettDate, Tag 64.

Source

pub fn get_fut_sett_date(&self) -> Result<String, MessageRejectErrorEnum>

Gets FutSettDate, Tag 64.

Source

pub fn has_fut_sett_date(&self) -> bool

Returns true if FutSettDate is present, Tag 64.

Source

pub fn set_id_source(&mut self, v: String)

Sets IDSource, Tag 22.

Source

pub fn get_id_source(&self) -> Result<String, MessageRejectErrorEnum>

Gets IDSource, Tag 22.

Source

pub fn has_id_source(&self) -> bool

Returns true if IDSource is present, Tag 22.

Source

pub fn set_issuer(&mut self, v: String)

Sets Issuer, Tag 106.

Source

pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum>

Gets Issuer, Tag 106.

Source

pub fn has_issuer(&self) -> bool

Returns true if Issuer is present, Tag 106.

Source

pub fn set_last_capacity(&mut self, v: String)

Sets LastCapacity, Tag 29.

Source

pub fn get_last_capacity(&self) -> Result<String, MessageRejectErrorEnum>

Gets LastCapacity, Tag 29.

Source

pub fn has_last_capacity(&self) -> bool

Returns true if LastCapacity is present, Tag 29.

Source

pub fn set_last_forward_points(&mut self, val: Decimal, scale: i32)

Sets LastForwardPoints, Tag 195.

Source

pub fn get_last_forward_points(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets LastForwardPoints, Tag 195.

Source

pub fn has_last_forward_points(&self) -> bool

Returns true if LastForwardPoints is present, Tag 195.

Source

pub fn set_last_mkt(&mut self, v: String)

Sets LastMkt, Tag 30.

Source

pub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum>

Gets LastMkt, Tag 30.

Source

pub fn has_last_mkt(&self) -> bool

Returns true if LastMkt is present, Tag 30.

Source

pub fn set_last_px(&mut self, val: Decimal, scale: i32)

Sets LastPx, Tag 31.

Source

pub fn get_last_px(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets LastPx, Tag 31.

Source

pub fn has_last_px(&self) -> bool

Returns true if LastPx is present, Tag 31.

Source

pub fn set_last_shares(&mut self, val: Decimal, scale: i32)

Sets LastShares, Tag 32.

Source

pub fn get_last_shares(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets LastShares, Tag 32.

Source

pub fn has_last_shares(&self) -> bool

Returns true if LastShares is present, Tag 32.

Source

pub fn set_last_spot_rate(&mut self, val: Decimal, scale: i32)

Sets LastSpotRate, Tag 194.

Source

pub fn get_last_spot_rate(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets LastSpotRate, Tag 194.

Source

pub fn has_last_spot_rate(&self) -> bool

Returns true if LastSpotRate is present, Tag 194.

Source

pub fn set_leaves_qty(&mut self, val: Decimal, scale: i32)

Sets LeavesQty, Tag 151.

Source

pub fn get_leaves_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets LeavesQty, Tag 151.

Source

pub fn has_leaves_qty(&self) -> bool

Returns true if LeavesQty is present, Tag 151.

Source

pub fn set_list_id(&mut self, v: String)

Sets ListID, Tag 66.

Source

pub fn get_list_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets ListID, Tag 66.

Source

pub fn has_list_id(&self) -> bool

Returns true if ListID is present, Tag 66.

Source

pub fn set_maturity_day(&mut self, v: isize)

Sets MaturityDay, Tag 205.

Source

pub fn get_maturity_day(&self) -> Result<isize, MessageRejectErrorEnum>

Gets MaturityDay, Tag 205.

Source

pub fn has_maturity_day(&self) -> bool

Returns true if MaturityDay is present, Tag 205.

Source

pub fn set_maturity_month_year(&mut self, v: String)

Sets MaturityMonthYear, Tag 200.

Source

pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum>

Gets MaturityMonthYear, Tag 200.

Source

pub fn has_maturity_month_year(&self) -> bool

Returns true if MaturityMonthYear is present, Tag 200.

Source

pub fn set_opt_attribute(&mut self, v: String)

Sets OptAttribute, Tag 206.

Source

pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum>

Gets OptAttribute, Tag 206.

Source

pub fn has_opt_attribute(&self) -> bool

Returns true if OptAttribute is present, Tag 206.

Source

pub fn set_ord_rej_reason(&mut self, v: isize)

Sets OrdRejReason, Tag 103.

Source

pub fn get_ord_rej_reason(&self) -> Result<isize, MessageRejectErrorEnum>

Gets OrdRejReason, Tag 103.

Source

pub fn has_ord_rej_reason(&self) -> bool

Returns true if OrdRejReason is present, Tag 103.

Source

pub fn set_ord_status(&mut self, v: String)

Sets OrdStatus, Tag 39.

Source

pub fn get_ord_status(&self) -> Result<String, MessageRejectErrorEnum>

Gets OrdStatus, Tag 39.

Source

pub fn has_ord_status(&self) -> bool

Returns true if OrdStatus is present, Tag 39.

Source

pub fn set_ord_type(&mut self, v: String)

Sets OrdType, Tag 40.

Source

pub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum>

Gets OrdType, Tag 40.

Source

pub fn has_ord_type(&self) -> bool

Returns true if OrdType is present, Tag 40.

Source

pub fn set_order_id(&mut self, v: String)

Sets OrderID, Tag 37.

Source

pub fn get_order_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets OrderID, Tag 37.

Source

pub fn has_order_id(&self) -> bool

Returns true if OrderID is present, Tag 37.

Source

pub fn set_order_qty(&mut self, val: Decimal, scale: i32)

Sets OrderQty, Tag 38.

Source

pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets OrderQty, Tag 38.

Source

pub fn has_order_qty(&self) -> bool

Returns true if OrderQty is present, Tag 38.

Source

pub fn set_orig_cl_ord_id(&mut self, v: String)

Sets OrigClOrdID, Tag 41.

Source

pub fn get_orig_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets OrigClOrdID, Tag 41.

Source

pub fn has_orig_cl_ord_id(&self) -> bool

Returns true if OrigClOrdID is present, Tag 41.

Source

pub fn set_peg_difference(&mut self, val: Decimal, scale: i32)

Sets PegDifference, Tag 211.

Source

pub fn get_peg_difference(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets PegDifference, Tag 211.

Source

pub fn has_peg_difference(&self) -> bool

Returns true if PegDifference is present, Tag 211.

Source

pub fn set_price(&mut self, val: Decimal, scale: i32)

Sets Price, Tag 44.

Source

pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets Price, Tag 44.

Source

pub fn has_price(&self) -> bool

Returns true if Price is present, Tag 44.

Source

pub fn set_put_or_call(&mut self, v: isize)

Sets PutOrCall, Tag 201.

Source

pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum>

Gets PutOrCall, Tag 201.

Source

pub fn has_put_or_call(&self) -> bool

Returns true if PutOrCall is present, Tag 201.

Source

pub fn set_report_to_exch(&mut self, v: bool)

Sets ReportToExch, Tag 113.

Source

pub fn get_report_to_exch(&self) -> Result<bool, MessageRejectErrorEnum>

Gets ReportToExch, Tag 113.

Source

pub fn has_report_to_exch(&self) -> bool

Returns true if ReportToExch is present, Tag 113.

Source

pub fn set_rule80_a(&mut self, v: String)

Sets Rule80A, Tag 47.

Source

pub fn get_rule80_a(&self) -> Result<String, MessageRejectErrorEnum>

Gets Rule80A, Tag 47.

Source

pub fn has_rule80_a(&self) -> bool

Returns true if Rule80A is present, Tag 47.

Source

pub fn set_secondary_order_id(&mut self, v: String)

Sets SecondaryOrderID, Tag 198.

Source

pub fn get_secondary_order_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets SecondaryOrderID, Tag 198.

Source

pub fn has_secondary_order_id(&self) -> bool

Returns true if SecondaryOrderID is present, Tag 198.

Source

pub fn set_security_desc(&mut self, v: String)

Sets SecurityDesc, Tag 107.

Source

pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum>

Gets SecurityDesc, Tag 107.

Source

pub fn has_security_desc(&self) -> bool

Returns true if SecurityDesc is present, Tag 107.

Source

pub fn set_security_exchange(&mut self, v: String)

Sets SecurityExchange, Tag 207.

Source

pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum>

Gets SecurityExchange, Tag 207.

Source

pub fn has_security_exchange(&self) -> bool

Returns true if SecurityExchange is present, Tag 207.

Source

pub fn set_security_id(&mut self, v: String)

Sets SecurityID, Tag 48.

Source

pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets SecurityID, Tag 48.

Source

pub fn has_security_id(&self) -> bool

Returns true if SecurityID is present, Tag 48.

Source

pub fn set_security_type(&mut self, v: String)

Sets SecurityType, Tag 167.

Source

pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum>

Gets SecurityType, Tag 167.

Source

pub fn has_security_type(&self) -> bool

Returns true if SecurityType is present, Tag 167.

Source

pub fn set_settl_curr_amt(&mut self, val: Decimal, scale: i32)

Sets SettlCurrAmt, Tag 119.

Source

pub fn get_settl_curr_amt(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets SettlCurrAmt, Tag 119.

Source

pub fn has_settl_curr_amt(&self) -> bool

Returns true if SettlCurrAmt is present, Tag 119.

Source

pub fn set_settl_curr_fx_rate(&mut self, val: Decimal, scale: i32)

Sets SettlCurrFxRate, Tag 155.

Source

pub fn get_settl_curr_fx_rate(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets SettlCurrFxRate, Tag 155.

Source

pub fn has_settl_curr_fx_rate(&self) -> bool

Returns true if SettlCurrFxRate is present, Tag 155.

Source

pub fn set_settl_curr_fx_rate_calc(&mut self, v: String)

Sets SettlCurrFxRateCalc, Tag 156.

Source

pub fn get_settl_curr_fx_rate_calc( &self, ) -> Result<String, MessageRejectErrorEnum>

Gets SettlCurrFxRateCalc, Tag 156.

Source

pub fn has_settl_curr_fx_rate_calc(&self) -> bool

Returns true if SettlCurrFxRateCalc is present, Tag 156.

Source

pub fn set_settl_currency(&mut self, v: String)

Sets SettlCurrency, Tag 120.

Source

pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum>

Gets SettlCurrency, Tag 120.

Source

pub fn has_settl_currency(&self) -> bool

Returns true if SettlCurrency is present, Tag 120.

Source

pub fn set_settlmnt_typ(&mut self, v: String)

Sets SettlmntTyp, Tag 63.

Source

pub fn get_settlmnt_typ(&self) -> Result<String, MessageRejectErrorEnum>

Gets SettlmntTyp, Tag 63.

Source

pub fn has_settlmnt_typ(&self) -> bool

Returns true if SettlmntTyp is present, Tag 63.

Source

pub fn set_side(&mut self, v: String)

Sets Side, Tag 54.

Source

pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum>

Gets Side, Tag 54.

Source

pub fn has_side(&self) -> bool

Returns true if Side is present, Tag 54.

Source

pub fn set_stop_px(&mut self, val: Decimal, scale: i32)

Sets StopPx, Tag 99.

Source

pub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets StopPx, Tag 99.

Source

pub fn has_stop_px(&self) -> bool

Returns true if StopPx is present, Tag 99.

Source

pub fn set_strike_price(&mut self, val: Decimal, scale: i32)

Sets StrikePrice, Tag 202.

Source

pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum>

Gets StrikePrice, Tag 202.

Source

pub fn has_strike_price(&self) -> bool

Returns true if StrikePrice is present, Tag 202.

Source

pub fn set_symbol(&mut self, v: String)

Sets Symbol, Tag 55.

Source

pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum>

Gets Symbol, Tag 55.

Source

pub fn has_symbol(&self) -> bool

Returns true if Symbol is present, Tag 55.

Source

pub fn set_symbol_sfx(&mut self, v: String)

Sets SymbolSfx, Tag 65.

Source

pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum>

Gets SymbolSfx, Tag 65.

Source

pub fn has_symbol_sfx(&self) -> bool

Returns true if SymbolSfx is present, Tag 65.

Source

pub fn set_text(&mut self, v: String)

Sets Text, Tag 58.

Source

pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>

Gets Text, Tag 58.

Source

pub fn has_text(&self) -> bool

Returns true if Text is present, Tag 58.

Source

pub fn set_time_in_force(&mut self, v: String)

Sets TimeInForce, Tag 59.

Source

pub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum>

Gets TimeInForce, Tag 59.

Source

pub fn has_time_in_force(&self) -> bool

Returns true if TimeInForce is present, Tag 59.

Source

pub fn set_trade_date(&mut self, v: String)

Sets TradeDate, Tag 75.

Source

pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum>

Gets TradeDate, Tag 75.

Source

pub fn has_trade_date(&self) -> bool

Returns true if TradeDate is present, Tag 75.

Source

pub fn set_transact_time(&mut self, v: Timestamp)

Sets TransactTime, Tag 60.

Source

pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>

Gets TransactTime, Tag 60.

Source

pub fn has_transact_time(&self) -> bool

Returns true if TransactTime is present, Tag 60.

Auto Trait Implementations§

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> 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, 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.