pub struct BidRequest {
pub message: Message,
}Expand description
BidRequest is the fix42 BidRequest type, MsgType = k.
Fields§
§message: MessageImplementations§
Source§impl BidRequest
impl BidRequest
Sourcepub fn new(
client_bid_id: ClientBidIDField,
bid_request_trans_type: BidRequestTransTypeField,
total_num_securities: TotalNumSecuritiesField,
bid_type: BidTypeField,
trade_type: TradeTypeField,
basis_px_type: BasisPxTypeField,
) -> Self
pub fn new( client_bid_id: ClientBidIDField, bid_request_trans_type: BidRequestTransTypeField, total_num_securities: TotalNumSecuritiesField, bid_type: BidTypeField, trade_type: TradeTypeField, basis_px_type: BasisPxTypeField, ) -> Self
Creates a new BidRequest with required fields.
Sourcepub fn from_message(msg: Message) -> Self
pub fn from_message(msg: Message) -> Self
Creates a BidRequest from an existing Message.
Sourcepub fn to_message(self) -> Message
pub fn to_message(self) -> Message
Returns the underlying Message.
Sourcepub fn set_basis_px_type(&mut self, v: String)
pub fn set_basis_px_type(&mut self, v: String)
Sets BasisPxType, Tag 419.
Sourcepub fn get_basis_px_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_basis_px_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets BasisPxType, Tag 419.
Sourcepub fn has_basis_px_type(&self) -> bool
pub fn has_basis_px_type(&self) -> bool
Returns true if BasisPxType is present, Tag 419.
Sourcepub fn set_bid_id(&mut self, v: String)
pub fn set_bid_id(&mut self, v: String)
Sets BidID, Tag 390.
Sourcepub fn get_bid_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_bid_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets BidID, Tag 390.
Sourcepub fn has_bid_id(&self) -> bool
pub fn has_bid_id(&self) -> bool
Returns true if BidID is present, Tag 390.
Sourcepub fn set_bid_request_trans_type(&mut self, v: String)
pub fn set_bid_request_trans_type(&mut self, v: String)
Sets BidRequestTransType, Tag 374.
Sourcepub fn get_bid_request_trans_type(
&self,
) -> Result<String, MessageRejectErrorEnum>
pub fn get_bid_request_trans_type( &self, ) -> Result<String, MessageRejectErrorEnum>
Gets BidRequestTransType, Tag 374.
Sourcepub fn has_bid_request_trans_type(&self) -> bool
pub fn has_bid_request_trans_type(&self) -> bool
Returns true if BidRequestTransType is present, Tag 374.
Sourcepub fn set_bid_type(&mut self, v: isize)
pub fn set_bid_type(&mut self, v: isize)
Sets BidType, Tag 394.
Sourcepub fn get_bid_type(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_bid_type(&self) -> Result<isize, MessageRejectErrorEnum>
Gets BidType, Tag 394.
Sourcepub fn has_bid_type(&self) -> bool
pub fn has_bid_type(&self) -> bool
Returns true if BidType is present, Tag 394.
Sourcepub fn set_client_bid_id(&mut self, v: String)
pub fn set_client_bid_id(&mut self, v: String)
Sets ClientBidID, Tag 391.
Sourcepub fn get_client_bid_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_client_bid_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets ClientBidID, Tag 391.
Sourcepub fn has_client_bid_id(&self) -> bool
pub fn has_client_bid_id(&self) -> bool
Returns true if ClientBidID is present, Tag 391.
Sourcepub fn set_cross_percent(&mut self, val: Decimal, scale: i32)
pub fn set_cross_percent(&mut self, val: Decimal, scale: i32)
Sets CrossPercent, Tag 413.
Sourcepub fn get_cross_percent(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_cross_percent(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets CrossPercent, Tag 413.
Sourcepub fn has_cross_percent(&self) -> bool
pub fn has_cross_percent(&self) -> bool
Returns true if CrossPercent is present, Tag 413.
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_encoded_text(&mut self, v: String)
pub fn set_encoded_text(&mut self, v: String)
Sets EncodedText, Tag 355.
Sourcepub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum>
Gets EncodedText, Tag 355.
Sourcepub fn has_encoded_text(&self) -> bool
pub fn has_encoded_text(&self) -> bool
Returns true if EncodedText is present, Tag 355.
Sourcepub fn set_encoded_text_len(&mut self, v: isize)
pub fn set_encoded_text_len(&mut self, v: isize)
Sets EncodedTextLen, Tag 354.
Sourcepub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum>
Gets EncodedTextLen, Tag 354.
Sourcepub fn has_encoded_text_len(&self) -> bool
pub fn has_encoded_text_len(&self) -> bool
Returns true if EncodedTextLen is present, Tag 354.
Sourcepub fn set_exchange_for_physical(&mut self, v: bool)
pub fn set_exchange_for_physical(&mut self, v: bool)
Sets ExchangeForPhysical, Tag 411.
Sourcepub fn get_exchange_for_physical(&self) -> Result<bool, MessageRejectErrorEnum>
pub fn get_exchange_for_physical(&self) -> Result<bool, MessageRejectErrorEnum>
Gets ExchangeForPhysical, Tag 411.
Sourcepub fn has_exchange_for_physical(&self) -> bool
pub fn has_exchange_for_physical(&self) -> bool
Returns true if ExchangeForPhysical is present, Tag 411.
Sourcepub fn set_forex_req(&mut self, v: bool)
pub fn set_forex_req(&mut self, v: bool)
Sets ForexReq, Tag 121.
Sourcepub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum>
pub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum>
Gets ForexReq, Tag 121.
Sourcepub fn has_forex_req(&self) -> bool
pub fn has_forex_req(&self) -> bool
Returns true if ForexReq is present, Tag 121.
Sourcepub fn set_inc_tax_ind(&mut self, v: isize)
pub fn set_inc_tax_ind(&mut self, v: isize)
Sets IncTaxInd, Tag 416.
Sourcepub fn get_inc_tax_ind(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_inc_tax_ind(&self) -> Result<isize, MessageRejectErrorEnum>
Gets IncTaxInd, Tag 416.
Sourcepub fn has_inc_tax_ind(&self) -> bool
pub fn has_inc_tax_ind(&self) -> bool
Returns true if IncTaxInd is present, Tag 416.
Sourcepub fn set_liquidity_ind_type(&mut self, v: isize)
pub fn set_liquidity_ind_type(&mut self, v: isize)
Sets LiquidityIndType, Tag 409.
Sourcepub fn get_liquidity_ind_type(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_liquidity_ind_type(&self) -> Result<isize, MessageRejectErrorEnum>
Gets LiquidityIndType, Tag 409.
Sourcepub fn has_liquidity_ind_type(&self) -> bool
pub fn has_liquidity_ind_type(&self) -> bool
Returns true if LiquidityIndType is present, Tag 409.
Sourcepub fn set_list_name(&mut self, v: String)
pub fn set_list_name(&mut self, v: String)
Sets ListName, Tag 392.
Sourcepub fn get_list_name(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_list_name(&self) -> Result<String, MessageRejectErrorEnum>
Gets ListName, Tag 392.
Sourcepub fn has_list_name(&self) -> bool
pub fn has_list_name(&self) -> bool
Returns true if ListName is present, Tag 392.
Sourcepub fn set_no_bid_components(&mut self, v: isize)
pub fn set_no_bid_components(&mut self, v: isize)
Sets NoBidComponents, Tag 420.
Sourcepub fn get_no_bid_components(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_no_bid_components(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NoBidComponents, Tag 420.
Sourcepub fn has_no_bid_components(&self) -> bool
pub fn has_no_bid_components(&self) -> bool
Returns true if NoBidComponents is present, Tag 420.
Sourcepub fn set_no_bid_descriptors(&mut self, v: isize)
pub fn set_no_bid_descriptors(&mut self, v: isize)
Sets NoBidDescriptors, Tag 398.
Sourcepub fn get_no_bid_descriptors(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_no_bid_descriptors(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NoBidDescriptors, Tag 398.
Sourcepub fn has_no_bid_descriptors(&self) -> bool
pub fn has_no_bid_descriptors(&self) -> bool
Returns true if NoBidDescriptors is present, Tag 398.
Sourcepub fn set_num_bidders(&mut self, v: isize)
pub fn set_num_bidders(&mut self, v: isize)
Sets NumBidders, Tag 417.
Sourcepub fn get_num_bidders(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_num_bidders(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NumBidders, Tag 417.
Sourcepub fn has_num_bidders(&self) -> bool
pub fn has_num_bidders(&self) -> bool
Returns true if NumBidders is present, Tag 417.
Sourcepub fn set_num_tickets(&mut self, v: isize)
pub fn set_num_tickets(&mut self, v: isize)
Sets NumTickets, Tag 395.
Sourcepub fn get_num_tickets(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_num_tickets(&self) -> Result<isize, MessageRejectErrorEnum>
Gets NumTickets, Tag 395.
Sourcepub fn has_num_tickets(&self) -> bool
pub fn has_num_tickets(&self) -> bool
Returns true if NumTickets is present, Tag 395.
Sourcepub fn set_out_main_cntry_u_index(&mut self, val: Decimal, scale: i32)
pub fn set_out_main_cntry_u_index(&mut self, val: Decimal, scale: i32)
Sets OutMainCntryUIndex, Tag 412.
Sourcepub fn get_out_main_cntry_u_index(
&self,
) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_out_main_cntry_u_index( &self, ) -> Result<Decimal, MessageRejectErrorEnum>
Gets OutMainCntryUIndex, Tag 412.
Sourcepub fn has_out_main_cntry_u_index(&self) -> bool
pub fn has_out_main_cntry_u_index(&self) -> bool
Returns true if OutMainCntryUIndex is present, Tag 412.
Sourcepub fn set_prog_period_interval(&mut self, v: isize)
pub fn set_prog_period_interval(&mut self, v: isize)
Sets ProgPeriodInterval, Tag 415.
Sourcepub fn get_prog_period_interval(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_prog_period_interval(&self) -> Result<isize, MessageRejectErrorEnum>
Gets ProgPeriodInterval, Tag 415.
Sourcepub fn has_prog_period_interval(&self) -> bool
pub fn has_prog_period_interval(&self) -> bool
Returns true if ProgPeriodInterval is present, Tag 415.
Sourcepub fn set_prog_rpt_reqs(&mut self, v: isize)
pub fn set_prog_rpt_reqs(&mut self, v: isize)
Sets ProgRptReqs, Tag 414.
Sourcepub fn get_prog_rpt_reqs(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_prog_rpt_reqs(&self) -> Result<isize, MessageRejectErrorEnum>
Gets ProgRptReqs, Tag 414.
Sourcepub fn has_prog_rpt_reqs(&self) -> bool
pub fn has_prog_rpt_reqs(&self) -> bool
Returns true if ProgRptReqs is present, Tag 414.
Sourcepub fn set_side_value1(&mut self, val: Decimal, scale: i32)
pub fn set_side_value1(&mut self, val: Decimal, scale: i32)
Sets SideValue1, Tag 396.
Sourcepub fn get_side_value1(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_side_value1(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets SideValue1, Tag 396.
Sourcepub fn has_side_value1(&self) -> bool
pub fn has_side_value1(&self) -> bool
Returns true if SideValue1 is present, Tag 396.
Sourcepub fn set_side_value2(&mut self, val: Decimal, scale: i32)
pub fn set_side_value2(&mut self, val: Decimal, scale: i32)
Sets SideValue2, Tag 397.
Sourcepub fn get_side_value2(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_side_value2(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets SideValue2, Tag 397.
Sourcepub fn has_side_value2(&self) -> bool
pub fn has_side_value2(&self) -> bool
Returns true if SideValue2 is present, Tag 397.
Sourcepub fn set_strike_time(&mut self, v: Timestamp)
pub fn set_strike_time(&mut self, v: Timestamp)
Sets StrikeTime, Tag 443.
Sourcepub fn get_strike_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
pub fn get_strike_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
Gets StrikeTime, Tag 443.
Sourcepub fn has_strike_time(&self) -> bool
pub fn has_strike_time(&self) -> bool
Returns true if StrikeTime is present, Tag 443.
Sourcepub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
Gets Text, Tag 58.
Sourcepub fn set_total_num_securities(&mut self, v: isize)
pub fn set_total_num_securities(&mut self, v: isize)
Sets TotalNumSecurities, Tag 393.
Sourcepub fn get_total_num_securities(&self) -> Result<isize, MessageRejectErrorEnum>
pub fn get_total_num_securities(&self) -> Result<isize, MessageRejectErrorEnum>
Gets TotalNumSecurities, Tag 393.
Sourcepub fn has_total_num_securities(&self) -> bool
pub fn has_total_num_securities(&self) -> bool
Returns true if TotalNumSecurities is present, Tag 393.
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_trade_type(&mut self, v: String)
pub fn set_trade_type(&mut self, v: String)
Sets TradeType, Tag 418.
Sourcepub fn get_trade_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_trade_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets TradeType, Tag 418.
Sourcepub fn has_trade_type(&self) -> bool
pub fn has_trade_type(&self) -> bool
Returns true if TradeType is present, Tag 418.
Sourcepub fn set_wt_average_liquidity(&mut self, val: Decimal, scale: i32)
pub fn set_wt_average_liquidity(&mut self, val: Decimal, scale: i32)
Sets WtAverageLiquidity, Tag 410.
Sourcepub fn get_wt_average_liquidity(
&self,
) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_wt_average_liquidity( &self, ) -> Result<Decimal, MessageRejectErrorEnum>
Gets WtAverageLiquidity, Tag 410.
Sourcepub fn has_wt_average_liquidity(&self) -> bool
pub fn has_wt_average_liquidity(&self) -> bool
Returns true if WtAverageLiquidity is present, Tag 410.