Skip to main content

HeaderAccess

Trait HeaderAccess 

Source
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§

Source

fn version(&self) -> Version

BeginString (tag 8) - FIX protocol version.

Constant per message type; it never varies between instances.

Source

fn sender_comp_id(&self) -> &FixStr

SenderCompID (tag 49) - identifier of the message sender.

Source

fn target_comp_id(&self) -> &FixStr

TargetCompID (tag 56) - identifier of the message recipient.

Source

fn msg_seq_num(&self) -> SeqNum

MsgSeqNum (tag 34) - message sequence number within the session.

Source

fn sending_time(&self) -> UtcTimestamp

SendingTime (tag 52) - time the message was sent (UTC).

Source

fn poss_dup_flag(&self) -> Option<Boolean>

PossDupFlag (tag 43) - true if this is a possible duplicate (resend).

Source

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.

Source

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.

Source

fn set_sender_comp_id(&mut self, value: FixString)

Set SenderCompID (tag 49).

Source

fn set_target_comp_id(&mut self, value: FixString)

Set TargetCompID (tag 56).

Source

fn set_msg_seq_num(&mut self, value: SeqNum)

Set MsgSeqNum (tag 34).

Source

fn set_sending_time(&mut self, value: UtcTimestamp)

Set SendingTime (tag 52).

Source

fn set_poss_dup_flag(&mut self, value: Option<Boolean>)

Set PossDupFlag (tag 43). Pass None to clear.

Source

fn set_orig_sending_time(&mut self, value: Option<UtcTimestamp>)

Set OrigSendingTime (tag 122). Pass None to clear.

Source

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".

Implementors§