Skip to main content

BidRequest

Struct BidRequest 

Source
pub struct BidRequest(/* private fields */);
Expand description

The BidRequest (35=k) message.

Implementations§

Source§

impl BidRequest

Source

pub const MSG_TYPE: &[u8] = b"k"

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue>

The BidID (390) field.

Source

pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue>

The ClientBidID (391) field.

Source

pub fn bid_request_trans_type( &self, ) -> Result<Option<BidRequestTransType<'_>>, InvalidValue>

The BidRequestTransType (374) field.

Source

pub fn list_name(&self) -> Result<Option<&str>, InvalidValue>

The ListName (392) field.

The TotNoRelatedSym (393) field.

Source

pub fn bid_type(&self) -> Result<Option<BidType>, InvalidValue>

The BidType (394) field.

Source

pub fn num_tickets(&self) -> Result<Option<i64>, InvalidValue>

The NumTickets (395) field.

Source

pub fn currency(&self) -> Result<Option<&str>, InvalidValue>

The Currency (15) field.

Source

pub fn side_value1(&self) -> Result<Option<Decimal>, InvalidValue>

The SideValue1 (396) field.

Source

pub fn side_value2(&self) -> Result<Option<Decimal>, InvalidValue>

The SideValue2 (397) field.

Source

pub fn bid_descriptors( &self, ) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoBidDescriptors (398) group.

Source

pub fn bid_components( &self, ) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoBidComponents (420) group.

Source

pub fn liquidity_ind_type( &self, ) -> Result<Option<LiquidityIndType>, InvalidValue>

The LiquidityIndType (409) field.

Source

pub fn wt_average_liquidity(&self) -> Result<Option<Decimal>, InvalidValue>

The WtAverageLiquidity (410) field.

Source

pub fn exchange_for_physical(&self) -> Result<Option<bool>, InvalidValue>

The ExchangeForPhysical (411) field.

Source

pub fn out_main_cntry_u_index(&self) -> Result<Option<Decimal>, InvalidValue>

The OutMainCntryUIndex (412) field.

Source

pub fn cross_percent(&self) -> Result<Option<Decimal>, InvalidValue>

The CrossPercent (413) field.

Source

pub fn prog_rpt_reqs(&self) -> Result<Option<ProgRptReqs>, InvalidValue>

The ProgRptReqs (414) field.

Source

pub fn prog_period_interval(&self) -> Result<Option<i64>, InvalidValue>

The ProgPeriodInterval (415) field.

Source

pub fn inc_tax_ind(&self) -> Result<Option<IncTaxInd>, InvalidValue>

The IncTaxInd (416) field.

Source

pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue>

The ForexReq (121) field.

Source

pub fn num_bidders(&self) -> Result<Option<i64>, InvalidValue>

The NumBidders (417) field.

Source

pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue>

The TradeDate (75) field.

Source

pub fn bid_trade_type(&self) -> Result<Option<BidTradeType<'_>>, InvalidValue>

The BidTradeType (418) field.

Source

pub fn basis_px_type(&self) -> Result<Option<BasisPxType<'_>>, InvalidValue>

The BasisPxType (419) field.

Source

pub fn strike_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The StrikeTime (443) field.

Source

pub fn text(&self) -> Result<Option<&str>, InvalidValue>

The Text (58) field.

Source

pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedTextLen (354) field.

Source

pub fn encoded_text(&self) -> Option<&[u8]>

The EncodedText (355) field.

Trait Implementations§

Source§

impl Debug for BidRequest

Source§

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

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

impl Display for BidRequest

Source§

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

Formats the value using the given formatter. Read more

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.