Skip to main content

Header

Struct Header 

Source
pub struct Header<'a> {
    pub header: &'a mut FieldMap,
}
Expand description

Header is the fix40 Header type.

Fields§

§header: &'a mut FieldMap

Implementations§

Source§

impl Header<'_>

Source

pub fn new(header: &mut FieldMap) -> Header<'_>

Creates a new Header wrapping the given message header.

Source

pub fn set_begin_string(&mut self, v: String)

Sets BeginString, Tag 8.

Source

pub fn has_begin_string(&self) -> bool

Returns true if BeginString is present, Tag 8.

Source

pub fn set_body_length(&mut self, v: isize)

Sets BodyLength, Tag 9.

Source

pub fn has_body_length(&self) -> bool

Returns true if BodyLength is present, Tag 9.

Source

pub fn set_deliver_to_comp_id(&mut self, v: String)

Sets DeliverToCompID, Tag 128.

Source

pub fn has_deliver_to_comp_id(&self) -> bool

Returns true if DeliverToCompID is present, Tag 128.

Source

pub fn set_deliver_to_sub_id(&mut self, v: String)

Sets DeliverToSubID, Tag 129.

Source

pub fn has_deliver_to_sub_id(&self) -> bool

Returns true if DeliverToSubID is present, Tag 129.

Source

pub fn set_msg_seq_num(&mut self, v: isize)

Sets MsgSeqNum, Tag 34.

Source

pub fn has_msg_seq_num(&self) -> bool

Returns true if MsgSeqNum is present, Tag 34.

Source

pub fn set_msg_type(&mut self, v: String)

Sets MsgType, Tag 35.

Source

pub fn has_msg_type(&self) -> bool

Returns true if MsgType is present, Tag 35.

Source

pub fn set_on_behalf_of_comp_id(&mut self, v: String)

Sets OnBehalfOfCompID, Tag 115.

Source

pub fn has_on_behalf_of_comp_id(&self) -> bool

Returns true if OnBehalfOfCompID is present, Tag 115.

Source

pub fn set_on_behalf_of_sub_id(&mut self, v: String)

Sets OnBehalfOfSubID, Tag 116.

Source

pub fn has_on_behalf_of_sub_id(&self) -> bool

Returns true if OnBehalfOfSubID is present, Tag 116.

Source

pub fn set_orig_sending_time(&mut self, v: Timestamp)

Sets OrigSendingTime, Tag 122.

Source

pub fn has_orig_sending_time(&self) -> bool

Returns true if OrigSendingTime is present, Tag 122.

Source

pub fn set_poss_dup_flag(&mut self, v: bool)

Sets PossDupFlag, Tag 43.

Source

pub fn has_poss_dup_flag(&self) -> bool

Returns true if PossDupFlag is present, Tag 43.

Source

pub fn set_poss_resend(&mut self, v: bool)

Sets PossResend, Tag 97.

Source

pub fn has_poss_resend(&self) -> bool

Returns true if PossResend is present, Tag 97.

Source

pub fn set_secure_data(&mut self, v: String)

Sets SecureData, Tag 91.

Source

pub fn has_secure_data(&self) -> bool

Returns true if SecureData is present, Tag 91.

Source

pub fn set_secure_data_len(&mut self, v: isize)

Sets SecureDataLen, Tag 90.

Source

pub fn has_secure_data_len(&self) -> bool

Returns true if SecureDataLen is present, Tag 90.

Source

pub fn set_sender_comp_id(&mut self, v: String)

Sets SenderCompID, Tag 49.

Source

pub fn has_sender_comp_id(&self) -> bool

Returns true if SenderCompID is present, Tag 49.

Source

pub fn set_sender_sub_id(&mut self, v: String)

Sets SenderSubID, Tag 50.

Source

pub fn has_sender_sub_id(&self) -> bool

Returns true if SenderSubID is present, Tag 50.

Source

pub fn set_sending_time(&mut self, v: Timestamp)

Sets SendingTime, Tag 52.

Source

pub fn has_sending_time(&self) -> bool

Returns true if SendingTime is present, Tag 52.

Source

pub fn set_target_comp_id(&mut self, v: String)

Sets TargetCompID, Tag 56.

Source

pub fn has_target_comp_id(&self) -> bool

Returns true if TargetCompID is present, Tag 56.

Source

pub fn set_target_sub_id(&mut self, v: String)

Sets TargetSubID, Tag 57.

Source

pub fn has_target_sub_id(&self) -> bool

Returns true if TargetSubID is present, Tag 57.

Auto Trait Implementations§

§

impl<'a> Freeze for Header<'a>

§

impl<'a> RefUnwindSafe for Header<'a>

§

impl<'a> Send for Header<'a>

§

impl<'a> Sync for Header<'a>

§

impl<'a> Unpin for Header<'a>

§

impl<'a> UnsafeUnpin for Header<'a>

§

impl<'a> !UnwindSafe for Header<'a>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.