pub trait HeaderAccess {
Show 15 methods
// Required methods
fn version(&self) -> Version;
fn sender_comp_id(&self) -> &FixStr;
fn target_comp_id(&self) -> &FixStr;
fn msg_seq_num(&self) -> SeqNum;
fn sending_time(&self) -> UtcTimestamp;
fn poss_dup_flag(&self) -> Option<Boolean>;
fn orig_sending_time(&self) -> Option<UtcTimestamp>;
fn appl_ver_id(&self) -> Option<ApplVerId>;
fn set_sender_comp_id(&mut self, value: FixString);
fn set_target_comp_id(&mut self, value: FixString);
fn set_msg_seq_num(&mut self, value: SeqNum);
fn set_sending_time(&mut self, value: UtcTimestamp);
fn set_poss_dup_flag(&mut self, value: Option<Boolean>);
fn set_orig_sending_time(&mut self, value: Option<UtcTimestamp>);
fn set_appl_ver_id(&mut self, value: Option<ApplVerId>);
}Expand description
Get/set access to the header fields the session layer reads and fills in.
Required Methods§
Sourcefn version(&self) -> Version
fn version(&self) -> Version
BeginString (tag 8) - FIX protocol version.
Constant per message type; it never varies between instances.
Sourcefn sender_comp_id(&self) -> &FixStr
fn sender_comp_id(&self) -> &FixStr
SenderCompID (tag 49) - identifier of the message sender.
Sourcefn target_comp_id(&self) -> &FixStr
fn target_comp_id(&self) -> &FixStr
TargetCompID (tag 56) - identifier of the message recipient.
Sourcefn msg_seq_num(&self) -> SeqNum
fn msg_seq_num(&self) -> SeqNum
MsgSeqNum (tag 34) - message sequence number within the session.
Sourcefn sending_time(&self) -> UtcTimestamp
fn sending_time(&self) -> UtcTimestamp
SendingTime (tag 52) - time the message was sent (UTC).
Sourcefn poss_dup_flag(&self) -> Option<Boolean>
fn poss_dup_flag(&self) -> Option<Boolean>
PossDupFlag (tag 43) - true if this is a possible duplicate (resend).
Sourcefn orig_sending_time(&self) -> Option<UtcTimestamp>
fn orig_sending_time(&self) -> Option<UtcTimestamp>
OrigSendingTime (tag 122) - original sending time for resent messages.
Returns None if the field is absent or the FIX version doesn’t define it.
Sourcefn appl_ver_id(&self) -> Option<ApplVerId>
fn appl_ver_id(&self) -> Option<ApplVerId>
ApplVerID (tag 1128) - application-level protocol version.
Only relevant for FIXT (FIX 5.0+); return None for FIX 4.x.
Sourcefn set_sender_comp_id(&mut self, value: FixString)
fn set_sender_comp_id(&mut self, value: FixString)
Set SenderCompID (tag 49).
Sourcefn set_target_comp_id(&mut self, value: FixString)
fn set_target_comp_id(&mut self, value: FixString)
Set TargetCompID (tag 56).
Sourcefn set_msg_seq_num(&mut self, value: SeqNum)
fn set_msg_seq_num(&mut self, value: SeqNum)
Set MsgSeqNum (tag 34).
Sourcefn set_sending_time(&mut self, value: UtcTimestamp)
fn set_sending_time(&mut self, value: UtcTimestamp)
Set SendingTime (tag 52).
Sourcefn set_poss_dup_flag(&mut self, value: Option<Boolean>)
fn set_poss_dup_flag(&mut self, value: Option<Boolean>)
Set PossDupFlag (tag 43). Pass None to clear.
Sourcefn set_orig_sending_time(&mut self, value: Option<UtcTimestamp>)
fn set_orig_sending_time(&mut self, value: Option<UtcTimestamp>)
Set OrigSendingTime (tag 122). Pass None to clear.
Sourcefn set_appl_ver_id(&mut self, value: Option<ApplVerId>)
fn set_appl_ver_id(&mut self, value: Option<ApplVerId>)
Set ApplVerID (tag 1128). Pass None to clear.
No-op for FIX 4.x implementations.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".