pub struct Advertisement {
pub message: Message,
}Expand description
Advertisement is the fix40 Advertisement type, MsgType = 7.
Fields§
§message: MessageImplementations§
Source§impl Advertisement
impl Advertisement
Sourcepub fn new(
adv_id: AdvIdField,
adv_trans_type: AdvTransTypeField,
symbol: SymbolField,
adv_side: AdvSideField,
shares: SharesField,
) -> Self
pub fn new( adv_id: AdvIdField, adv_trans_type: AdvTransTypeField, symbol: SymbolField, adv_side: AdvSideField, shares: SharesField, ) -> Self
Creates a new Advertisement with required fields.
Sourcepub fn from_message(msg: Message) -> Self
pub fn from_message(msg: Message) -> Self
Creates a Advertisement from an existing Message.
Sourcepub fn to_message(self) -> Message
pub fn to_message(self) -> Message
Returns the underlying Message.
Sourcepub fn set_adv_id(&mut self, v: String)
pub fn set_adv_id(&mut self, v: String)
Sets AdvId, Tag 2.
Sourcepub fn get_adv_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_adv_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets AdvId, Tag 2.
Sourcepub fn has_adv_id(&self) -> bool
pub fn has_adv_id(&self) -> bool
Returns true if AdvId is present, Tag 2.
Sourcepub fn set_adv_ref_id(&mut self, v: String)
pub fn set_adv_ref_id(&mut self, v: String)
Sets AdvRefID, Tag 3.
Sourcepub fn get_adv_ref_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_adv_ref_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets AdvRefID, Tag 3.
Sourcepub fn has_adv_ref_id(&self) -> bool
pub fn has_adv_ref_id(&self) -> bool
Returns true if AdvRefID is present, Tag 3.
Sourcepub fn set_adv_side(&mut self, v: String)
pub fn set_adv_side(&mut self, v: String)
Sets AdvSide, Tag 4.
Sourcepub fn get_adv_side(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_adv_side(&self) -> Result<String, MessageRejectErrorEnum>
Gets AdvSide, Tag 4.
Sourcepub fn has_adv_side(&self) -> bool
pub fn has_adv_side(&self) -> bool
Returns true if AdvSide is present, Tag 4.
Sourcepub fn set_adv_trans_type(&mut self, v: String)
pub fn set_adv_trans_type(&mut self, v: String)
Sets AdvTransType, Tag 5.
Sourcepub fn get_adv_trans_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_adv_trans_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets AdvTransType, Tag 5.
Sourcepub fn has_adv_trans_type(&self) -> bool
pub fn has_adv_trans_type(&self) -> bool
Returns true if AdvTransType is present, Tag 5.
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_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 get_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets Price, Tag 44.
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.
Sets Shares, Tag 53.
Gets Shares, Tag 53.
Returns true if Shares is present, Tag 53.
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_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.