pub struct Allocation {
pub message: Message,
}Expand description
Allocation is the fix41 Allocation type, MsgType = J.
Fields§
§message: MessageImplementations§
Source§impl Allocation
impl Allocation
Sourcepub fn new(
alloc_id: AllocIDField,
alloc_trans_type: AllocTransTypeField,
side: SideField,
symbol: SymbolField,
shares: SharesField,
avg_px: AvgPxField,
trade_date: TradeDateField,
) -> Self
pub fn new( alloc_id: AllocIDField, alloc_trans_type: AllocTransTypeField, side: SideField, symbol: SymbolField, shares: SharesField, avg_px: AvgPxField, trade_date: TradeDateField, ) -> Self
Creates a new Allocation with required fields.
Sourcepub fn from_message(msg: Message) -> Self
pub fn from_message(msg: Message) -> Self
Creates a Allocation from an existing Message.
Sourcepub fn to_message(self) -> Message
pub fn to_message(self) -> Message
Returns the underlying Message.
Sourcepub fn set_accrued_interest_rate(&mut self, val: Decimal, scale: i32)
pub fn set_accrued_interest_rate(&mut self, val: Decimal, scale: i32)
Sets AccruedInterestRate, Tag 158.
Sourcepub fn get_accrued_interest_rate(
&self,
) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_accrued_interest_rate( &self, ) -> Result<Decimal, MessageRejectErrorEnum>
Gets AccruedInterestRate, Tag 158.
Sourcepub fn has_accrued_interest_rate(&self) -> bool
pub fn has_accrued_interest_rate(&self) -> bool
Returns true if AccruedInterestRate is present, Tag 158.
Sourcepub fn set_alloc_id(&mut self, v: String)
pub fn set_alloc_id(&mut self, v: String)
Sets AllocID, Tag 70.
Sourcepub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets AllocID, Tag 70.
Sourcepub fn has_alloc_id(&self) -> bool
pub fn has_alloc_id(&self) -> bool
Returns true if AllocID is present, Tag 70.
Sourcepub fn set_alloc_link_id(&mut self, v: String)
pub fn set_alloc_link_id(&mut self, v: String)
Sets AllocLinkID, Tag 196.
Sourcepub fn get_alloc_link_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_alloc_link_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets AllocLinkID, Tag 196.
Sourcepub fn has_alloc_link_id(&self) -> bool
pub fn has_alloc_link_id(&self) -> bool
Returns true if AllocLinkID is present, Tag 196.
Sourcepub fn set_alloc_link_type(&mut self, v: isize)
pub fn set_alloc_link_type(&mut self, v: isize)
Sets AllocLinkType, Tag 197.
Sourcepub fn get_alloc_link_type(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_alloc_link_type(&self) -> Result<isize, MessageRejectErrorEnum>
Gets AllocLinkType, Tag 197.
Sourcepub fn has_alloc_link_type(&self) -> bool
pub fn has_alloc_link_type(&self) -> bool
Returns true if AllocLinkType is present, Tag 197.
Sourcepub fn set_alloc_trans_type(&mut self, v: String)
pub fn set_alloc_trans_type(&mut self, v: String)
Sets AllocTransType, Tag 71.
Sourcepub fn get_alloc_trans_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_alloc_trans_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets AllocTransType, Tag 71.
Sourcepub fn has_alloc_trans_type(&self) -> bool
pub fn has_alloc_trans_type(&self) -> bool
Returns true if AllocTransType is present, Tag 71.
Sourcepub fn set_avg_prx_precision(&mut self, v: isize)
pub fn set_avg_prx_precision(&mut self, v: isize)
Sets AvgPrxPrecision, Tag 74.
Sourcepub fn get_avg_prx_precision(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_avg_prx_precision(&self) -> Result<isize, MessageRejectErrorEnum>
Gets AvgPrxPrecision, Tag 74.
Sourcepub fn has_avg_prx_precision(&self) -> bool
pub fn has_avg_prx_precision(&self) -> bool
Returns true if AvgPrxPrecision is present, Tag 74.
Sourcepub fn set_avg_px(&mut self, val: Decimal, scale: i32)
pub fn set_avg_px(&mut self, val: Decimal, scale: i32)
Sets AvgPx, Tag 6.
Sourcepub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets AvgPx, Tag 6.
Sourcepub fn has_avg_px(&self) -> bool
pub fn has_avg_px(&self) -> bool
Returns true if AvgPx is present, Tag 6.
Sourcepub fn set_currency(&mut self, v: String)
pub fn set_currency(&mut self, v: String)
Sets Currency, Tag 15.
Sourcepub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum>
Gets Currency, Tag 15.
Sourcepub fn has_currency(&self) -> bool
pub fn has_currency(&self) -> bool
Returns true if Currency is present, Tag 15.
Sourcepub fn set_fut_sett_date(&mut self, v: String)
pub fn set_fut_sett_date(&mut self, v: String)
Sets FutSettDate, Tag 64.
Sourcepub fn get_fut_sett_date(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_fut_sett_date(&self) -> Result<String, MessageRejectErrorEnum>
Gets FutSettDate, Tag 64.
Sourcepub fn has_fut_sett_date(&self) -> bool
pub fn has_fut_sett_date(&self) -> bool
Returns true if FutSettDate is present, Tag 64.
Sourcepub fn set_id_source(&mut self, v: String)
pub fn set_id_source(&mut self, v: String)
Sets IDSource, Tag 22.
Sourcepub fn get_id_source(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_id_source(&self) -> Result<String, MessageRejectErrorEnum>
Gets IDSource, Tag 22.
Sourcepub fn has_id_source(&self) -> bool
pub fn has_id_source(&self) -> bool
Returns true if IDSource is present, Tag 22.
Sourcepub fn set_issuer(&mut self, v: String)
pub fn set_issuer(&mut self, v: String)
Sets Issuer, Tag 106.
Sourcepub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum>
Gets Issuer, Tag 106.
Sourcepub fn has_issuer(&self) -> bool
pub fn has_issuer(&self) -> bool
Returns true if Issuer is present, Tag 106.
Sourcepub fn set_last_mkt(&mut self, v: String)
pub fn set_last_mkt(&mut self, v: String)
Sets LastMkt, Tag 30.
Sourcepub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum>
Gets LastMkt, Tag 30.
Sourcepub fn has_last_mkt(&self) -> bool
pub fn has_last_mkt(&self) -> bool
Returns true if LastMkt is present, Tag 30.
Sourcepub fn set_maturity_day(&mut self, v: isize)
pub fn set_maturity_day(&mut self, v: isize)
Sets MaturityDay, Tag 205.
Sourcepub fn get_maturity_day(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_maturity_day(&self) -> Result<isize, MessageRejectErrorEnum>
Gets MaturityDay, Tag 205.
Sourcepub fn has_maturity_day(&self) -> bool
pub fn has_maturity_day(&self) -> bool
Returns true if MaturityDay is present, Tag 205.
Sourcepub fn set_maturity_month_year(&mut self, v: String)
pub fn set_maturity_month_year(&mut self, v: String)
Sets MaturityMonthYear, Tag 200.
Sourcepub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum>
Gets MaturityMonthYear, Tag 200.
Sourcepub fn has_maturity_month_year(&self) -> bool
pub fn has_maturity_month_year(&self) -> bool
Returns true if MaturityMonthYear is present, Tag 200.
Sourcepub fn set_net_money(&mut self, val: Decimal, scale: i32)
pub fn set_net_money(&mut self, val: Decimal, scale: i32)
Sets NetMoney, Tag 118.
Sourcepub fn get_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets NetMoney, Tag 118.
Sourcepub fn has_net_money(&self) -> bool
pub fn has_net_money(&self) -> bool
Returns true if NetMoney is present, Tag 118.
Sourcepub fn set_no_allocs(&mut self, v: isize)
pub fn set_no_allocs(&mut self, v: isize)
Sets NoAllocs, Tag 78.
Sourcepub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NoAllocs, Tag 78.
Sourcepub fn has_no_allocs(&self) -> bool
pub fn has_no_allocs(&self) -> bool
Returns true if NoAllocs is present, Tag 78.
Sourcepub fn set_no_execs(&mut self, v: isize)
pub fn set_no_execs(&mut self, v: isize)
Sets NoExecs, Tag 124.
Sourcepub fn get_no_execs(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_no_execs(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NoExecs, Tag 124.
Sourcepub fn has_no_execs(&self) -> bool
pub fn has_no_execs(&self) -> bool
Returns true if NoExecs is present, Tag 124.
Sourcepub fn set_no_orders(&mut self, v: isize)
pub fn set_no_orders(&mut self, v: isize)
Sets NoOrders, Tag 73.
Sourcepub fn get_no_orders(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_no_orders(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NoOrders, Tag 73.
Sourcepub fn has_no_orders(&self) -> bool
pub fn has_no_orders(&self) -> bool
Returns true if NoOrders is present, Tag 73.
Sourcepub fn set_num_days_interest(&mut self, v: isize)
pub fn set_num_days_interest(&mut self, v: isize)
Sets NumDaysInterest, Tag 157.
Sourcepub fn get_num_days_interest(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_num_days_interest(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NumDaysInterest, Tag 157.
Sourcepub fn has_num_days_interest(&self) -> bool
pub fn has_num_days_interest(&self) -> bool
Returns true if NumDaysInterest is present, Tag 157.
Sourcepub fn set_open_close(&mut self, v: String)
pub fn set_open_close(&mut self, v: String)
Sets OpenClose, Tag 77.
Sourcepub fn get_open_close(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_open_close(&self) -> Result<String, MessageRejectErrorEnum>
Gets OpenClose, Tag 77.
Sourcepub fn has_open_close(&self) -> bool
pub fn has_open_close(&self) -> bool
Returns true if OpenClose is present, Tag 77.
Sourcepub fn set_opt_attribute(&mut self, v: String)
pub fn set_opt_attribute(&mut self, v: String)
Sets OptAttribute, Tag 206.
Sourcepub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum>
Gets OptAttribute, Tag 206.
Sourcepub fn has_opt_attribute(&self) -> bool
pub fn has_opt_attribute(&self) -> bool
Returns true if OptAttribute is present, Tag 206.
Sourcepub fn set_put_or_call(&mut self, v: isize)
pub fn set_put_or_call(&mut self, v: isize)
Sets PutOrCall, Tag 201.
Sourcepub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum>
Gets PutOrCall, Tag 201.
Sourcepub fn has_put_or_call(&self) -> bool
pub fn has_put_or_call(&self) -> bool
Returns true if PutOrCall is present, Tag 201.
Sourcepub fn set_ref_alloc_id(&mut self, v: String)
pub fn set_ref_alloc_id(&mut self, v: String)
Sets RefAllocID, Tag 72.
Sourcepub fn get_ref_alloc_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_ref_alloc_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets RefAllocID, Tag 72.
Sourcepub fn has_ref_alloc_id(&self) -> bool
pub fn has_ref_alloc_id(&self) -> bool
Returns true if RefAllocID is present, Tag 72.
Sourcepub fn set_security_desc(&mut self, v: String)
pub fn set_security_desc(&mut self, v: String)
Sets SecurityDesc, Tag 107.
Sourcepub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityDesc, Tag 107.
Sourcepub fn has_security_desc(&self) -> bool
pub fn has_security_desc(&self) -> bool
Returns true if SecurityDesc is present, Tag 107.
Sourcepub fn set_security_exchange(&mut self, v: String)
pub fn set_security_exchange(&mut self, v: String)
Sets SecurityExchange, Tag 207.
Sourcepub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityExchange, Tag 207.
Sourcepub fn has_security_exchange(&self) -> bool
pub fn has_security_exchange(&self) -> bool
Returns true if SecurityExchange is present, Tag 207.
Sourcepub fn set_security_id(&mut self, v: String)
pub fn set_security_id(&mut self, v: String)
Sets SecurityID, Tag 48.
Sourcepub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityID, Tag 48.
Sourcepub fn has_security_id(&self) -> bool
pub fn has_security_id(&self) -> bool
Returns true if SecurityID is present, Tag 48.
Sourcepub fn set_security_type(&mut self, v: String)
pub fn set_security_type(&mut self, v: String)
Sets SecurityType, Tag 167.
Sourcepub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityType, Tag 167.
Sourcepub fn has_security_type(&self) -> bool
pub fn has_security_type(&self) -> bool
Returns true if SecurityType is present, Tag 167.
Sourcepub fn set_settlmnt_typ(&mut self, v: String)
pub fn set_settlmnt_typ(&mut self, v: String)
Sets SettlmntTyp, Tag 63.
Sourcepub fn get_settlmnt_typ(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_settlmnt_typ(&self) -> Result<String, MessageRejectErrorEnum>
Gets SettlmntTyp, Tag 63.
Sourcepub fn has_settlmnt_typ(&self) -> bool
pub fn has_settlmnt_typ(&self) -> bool
Returns true if SettlmntTyp is present, Tag 63.
Sets Shares, Tag 53.
Gets Shares, Tag 53.
Returns true if Shares is present, Tag 53.
Sourcepub fn get_side(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum>
Gets Side, Tag 54.
Sourcepub fn set_strike_price(&mut self, val: Decimal, scale: i32)
pub fn set_strike_price(&mut self, val: Decimal, scale: i32)
Sets StrikePrice, Tag 202.
Sourcepub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets StrikePrice, Tag 202.
Sourcepub fn has_strike_price(&self) -> bool
pub fn has_strike_price(&self) -> bool
Returns true if StrikePrice is present, Tag 202.
Sourcepub fn set_symbol(&mut self, v: String)
pub fn set_symbol(&mut self, v: String)
Sets Symbol, Tag 55.
Sourcepub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum>
Gets Symbol, Tag 55.
Sourcepub fn has_symbol(&self) -> bool
pub fn has_symbol(&self) -> bool
Returns true if Symbol is present, Tag 55.
Sourcepub fn set_symbol_sfx(&mut self, v: String)
pub fn set_symbol_sfx(&mut self, v: String)
Sets SymbolSfx, Tag 65.
Sourcepub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum>
Gets SymbolSfx, Tag 65.
Sourcepub fn has_symbol_sfx(&self) -> bool
pub fn has_symbol_sfx(&self) -> bool
Returns true if SymbolSfx is present, Tag 65.
Sourcepub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
Gets Text, Tag 58.
Sourcepub fn set_trade_date(&mut self, v: String)
pub fn set_trade_date(&mut self, v: String)
Sets TradeDate, Tag 75.
Sourcepub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum>
Gets TradeDate, Tag 75.
Sourcepub fn has_trade_date(&self) -> bool
pub fn has_trade_date(&self) -> bool
Returns true if TradeDate is present, Tag 75.
Sourcepub fn set_transact_time(&mut self, v: Timestamp)
pub fn set_transact_time(&mut self, v: Timestamp)
Sets TransactTime, Tag 60.
Sourcepub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
Gets TransactTime, Tag 60.
Sourcepub fn has_transact_time(&self) -> bool
pub fn has_transact_time(&self) -> bool
Returns true if TransactTime is present, Tag 60.