Skip to main content

BidRequest

Struct BidRequest 

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

BidRequest is the fix50sp1 BidRequest type, MsgType = k.

Fields§

§message: Message

Implementations§

Source§

impl BidRequest

Source

pub fn new( client_bid_id: ClientBidIDField, bid_request_trans_type: BidRequestTransTypeField, tot_no_related_sym: TotNoRelatedSymField, bid_type: BidTypeField, bid_trade_type: BidTradeTypeField, basis_px_type: BasisPxTypeField, ) -> Self

Creates a new BidRequest with required fields.

Source

pub fn from_message(msg: Message) -> Self

Creates a BidRequest from an existing Message.

Source

pub fn to_message(self) -> Message

Returns the underlying Message.

Source

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

Sets BasisPxType, Tag 419.

Source

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

Gets BasisPxType, Tag 419.

Source

pub fn has_basis_px_type(&self) -> bool

Returns true if BasisPxType is present, Tag 419.

Source

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

Sets BidID, Tag 390.

Source

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

Gets BidID, Tag 390.

Source

pub fn has_bid_id(&self) -> bool

Returns true if BidID is present, Tag 390.

Source

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

Sets BidRequestTransType, Tag 374.

Source

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

Gets BidRequestTransType, Tag 374.

Source

pub fn has_bid_request_trans_type(&self) -> bool

Returns true if BidRequestTransType is present, Tag 374.

Source

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

Sets BidTradeType, Tag 418.

Source

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

Gets BidTradeType, Tag 418.

Source

pub fn has_bid_trade_type(&self) -> bool

Returns true if BidTradeType is present, Tag 418.

Source

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

Sets BidType, Tag 394.

Source

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

Gets BidType, Tag 394.

Source

pub fn has_bid_type(&self) -> bool

Returns true if BidType is present, Tag 394.

Source

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

Sets ClientBidID, Tag 391.

Source

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

Gets ClientBidID, Tag 391.

Source

pub fn has_client_bid_id(&self) -> bool

Returns true if ClientBidID is present, Tag 391.

Source

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

Sets CrossPercent, Tag 413.

Source

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

Gets CrossPercent, Tag 413.

Source

pub fn has_cross_percent(&self) -> bool

Returns true if CrossPercent is present, Tag 413.

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_encoded_text(&mut self, v: String)

Sets EncodedText, Tag 355.

Source

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

Gets EncodedText, Tag 355.

Source

pub fn has_encoded_text(&self) -> bool

Returns true if EncodedText is present, Tag 355.

Source

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

Sets EncodedTextLen, Tag 354.

Source

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

Gets EncodedTextLen, Tag 354.

Source

pub fn has_encoded_text_len(&self) -> bool

Returns true if EncodedTextLen is present, Tag 354.

Source

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

Sets ExchangeForPhysical, Tag 411.

Source

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

Gets ExchangeForPhysical, Tag 411.

Source

pub fn has_exchange_for_physical(&self) -> bool

Returns true if ExchangeForPhysical is present, Tag 411.

Source

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

Sets ForexReq, Tag 121.

Source

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

Gets ForexReq, Tag 121.

Source

pub fn has_forex_req(&self) -> bool

Returns true if ForexReq is present, Tag 121.

Source

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

Sets IncTaxInd, Tag 416.

Source

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

Gets IncTaxInd, Tag 416.

Source

pub fn has_inc_tax_ind(&self) -> bool

Returns true if IncTaxInd is present, Tag 416.

Source

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

Sets LiquidityIndType, Tag 409.

Source

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

Gets LiquidityIndType, Tag 409.

Source

pub fn has_liquidity_ind_type(&self) -> bool

Returns true if LiquidityIndType is present, Tag 409.

Source

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

Sets ListName, Tag 392.

Source

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

Gets ListName, Tag 392.

Source

pub fn has_list_name(&self) -> bool

Returns true if ListName is present, Tag 392.

Source

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

Sets NoBidComponents, Tag 420.

Source

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

Gets NoBidComponents, Tag 420.

Source

pub fn has_no_bid_components(&self) -> bool

Returns true if NoBidComponents is present, Tag 420.

Source

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

Sets NoBidDescriptors, Tag 398.

Source

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

Gets NoBidDescriptors, Tag 398.

Source

pub fn has_no_bid_descriptors(&self) -> bool

Returns true if NoBidDescriptors is present, Tag 398.

Source

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

Sets NumBidders, Tag 417.

Source

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

Gets NumBidders, Tag 417.

Source

pub fn has_num_bidders(&self) -> bool

Returns true if NumBidders is present, Tag 417.

Source

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

Sets NumTickets, Tag 395.

Source

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

Gets NumTickets, Tag 395.

Source

pub fn has_num_tickets(&self) -> bool

Returns true if NumTickets is present, Tag 395.

Source

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

Sets OutMainCntryUIndex, Tag 412.

Source

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

Gets OutMainCntryUIndex, Tag 412.

Source

pub fn has_out_main_cntry_u_index(&self) -> bool

Returns true if OutMainCntryUIndex is present, Tag 412.

Source

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

Sets ProgPeriodInterval, Tag 415.

Source

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

Gets ProgPeriodInterval, Tag 415.

Source

pub fn has_prog_period_interval(&self) -> bool

Returns true if ProgPeriodInterval is present, Tag 415.

Source

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

Sets ProgRptReqs, Tag 414.

Source

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

Gets ProgRptReqs, Tag 414.

Source

pub fn has_prog_rpt_reqs(&self) -> bool

Returns true if ProgRptReqs is present, Tag 414.

Source

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

Sets SideValue1, Tag 396.

Source

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

Gets SideValue1, Tag 396.

Source

pub fn has_side_value1(&self) -> bool

Returns true if SideValue1 is present, Tag 396.

Source

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

Sets SideValue2, Tag 397.

Source

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

Gets SideValue2, Tag 397.

Source

pub fn has_side_value2(&self) -> bool

Returns true if SideValue2 is present, Tag 397.

Source

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

Sets StrikeTime, Tag 443.

Source

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

Gets StrikeTime, Tag 443.

Source

pub fn has_strike_time(&self) -> bool

Returns true if StrikeTime is present, Tag 443.

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.

Sets TotNoRelatedSym, Tag 393.

Gets TotNoRelatedSym, Tag 393.

Returns true if TotNoRelatedSym is present, Tag 393.

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_wt_average_liquidity(&mut self, val: Decimal, scale: i32)

Sets WtAverageLiquidity, Tag 410.

Source

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

Gets WtAverageLiquidity, Tag 410.

Source

pub fn has_wt_average_liquidity(&self) -> bool

Returns true if WtAverageLiquidity is present, Tag 410.

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.