pub struct Quote {
pub message: Message,
}Expand description
Quote is the fix40 Quote type, MsgType = S.
Fields§
§message: MessageImplementations§
Source§impl Quote
impl Quote
Sourcepub fn new(
quote_id: QuoteIDField,
symbol: SymbolField,
bid_px: BidPxField,
) -> Self
pub fn new( quote_id: QuoteIDField, symbol: SymbolField, bid_px: BidPxField, ) -> Self
Creates a new Quote with required fields.
Sourcepub fn from_message(msg: Message) -> Self
pub fn from_message(msg: Message) -> Self
Creates a Quote from an existing Message.
Sourcepub fn to_message(self) -> Message
pub fn to_message(self) -> Message
Returns the underlying Message.
Sourcepub fn set_bid_px(&mut self, val: Decimal, scale: i32)
pub fn set_bid_px(&mut self, val: Decimal, scale: i32)
Sets BidPx, Tag 132.
Sourcepub fn get_bid_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_bid_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets BidPx, Tag 132.
Sourcepub fn has_bid_px(&self) -> bool
pub fn has_bid_px(&self) -> bool
Returns true if BidPx is present, Tag 132.
Sourcepub fn set_bid_size(&mut self, val: Decimal, scale: i32)
pub fn set_bid_size(&mut self, val: Decimal, scale: i32)
Sets BidSize, Tag 134.
Sourcepub fn get_bid_size(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_bid_size(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets BidSize, Tag 134.
Sourcepub fn has_bid_size(&self) -> bool
pub fn has_bid_size(&self) -> bool
Returns true if BidSize is present, Tag 134.
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_offer_px(&mut self, val: Decimal, scale: i32)
pub fn set_offer_px(&mut self, val: Decimal, scale: i32)
Sets OfferPx, Tag 133.
Sourcepub fn get_offer_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_offer_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets OfferPx, Tag 133.
Sourcepub fn has_offer_px(&self) -> bool
pub fn has_offer_px(&self) -> bool
Returns true if OfferPx is present, Tag 133.
Sourcepub fn set_offer_size(&mut self, val: Decimal, scale: i32)
pub fn set_offer_size(&mut self, val: Decimal, scale: i32)
Sets OfferSize, Tag 135.
Sourcepub fn get_offer_size(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_offer_size(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets OfferSize, Tag 135.
Sourcepub fn has_offer_size(&self) -> bool
pub fn has_offer_size(&self) -> bool
Returns true if OfferSize is present, Tag 135.
Sourcepub fn set_quote_id(&mut self, v: String)
pub fn set_quote_id(&mut self, v: String)
Sets QuoteID, Tag 117.
Sourcepub fn get_quote_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_quote_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets QuoteID, Tag 117.
Sourcepub fn has_quote_id(&self) -> bool
pub fn has_quote_id(&self) -> bool
Returns true if QuoteID is present, Tag 117.
Sourcepub fn set_quote_req_id(&mut self, v: String)
pub fn set_quote_req_id(&mut self, v: String)
Sets QuoteReqID, Tag 131.
Sourcepub fn get_quote_req_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_quote_req_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets QuoteReqID, Tag 131.
Sourcepub fn has_quote_req_id(&self) -> bool
pub fn has_quote_req_id(&self) -> bool
Returns true if QuoteReqID is present, Tag 131.
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_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_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 set_valid_until_time(&mut self, v: Timestamp)
pub fn set_valid_until_time(&mut self, v: Timestamp)
Sets ValidUntilTime, Tag 62.
Sourcepub fn get_valid_until_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
pub fn get_valid_until_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
Gets ValidUntilTime, Tag 62.
Sourcepub fn has_valid_until_time(&self) -> bool
pub fn has_valid_until_time(&self) -> bool
Returns true if ValidUntilTime is present, Tag 62.