Skip to main content

Header

Struct Header 

Source
pub struct Header<'a>(/* private fields */);
Expand description

The header fields of a message.

Implementations§

Source§

impl<'a> Header<'a>

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn raw(&self) -> Scope<'a>

Source

pub fn begin_string(&self) -> Result<Option<&'a str>, InvalidValue>

The BeginString (8) field.

Source

pub fn body_length(&self) -> Result<Option<i64>, InvalidValue>

The BodyLength (9) field.

Source

pub fn msg_type(&self) -> Result<Option<MsgType<'a>>, InvalidValue>

The MsgType (35) field.

Source

pub fn sender_comp_id(&self) -> Result<Option<&'a str>, InvalidValue>

The SenderCompID (49) field.

Source

pub fn target_comp_id(&self) -> Result<Option<&'a str>, InvalidValue>

The TargetCompID (56) field.

Source

pub fn on_behalf_of_comp_id(&self) -> Result<Option<&'a str>, InvalidValue>

The OnBehalfOfCompID (115) field.

Source

pub fn deliver_to_comp_id(&self) -> Result<Option<&'a str>, InvalidValue>

The DeliverToCompID (128) field.

Source

pub fn secure_data_len(&self) -> Result<Option<i64>, InvalidValue>

The SecureDataLen (90) field.

Source

pub fn secure_data(&self) -> Option<&'a [u8]>

The SecureData (91) field.

Source

pub fn msg_seq_num(&self) -> Result<Option<i64>, InvalidValue>

The MsgSeqNum (34) field.

Source

pub fn sender_sub_id(&self) -> Result<Option<&'a str>, InvalidValue>

The SenderSubID (50) field.

Source

pub fn sender_location_id(&self) -> Result<Option<&'a str>, InvalidValue>

The SenderLocationID (142) field.

Source

pub fn target_sub_id(&self) -> Result<Option<&'a str>, InvalidValue>

The TargetSubID (57) field.

Source

pub fn target_location_id(&self) -> Result<Option<&'a str>, InvalidValue>

The TargetLocationID (143) field.

Source

pub fn on_behalf_of_sub_id(&self) -> Result<Option<&'a str>, InvalidValue>

The OnBehalfOfSubID (116) field.

Source

pub fn on_behalf_of_location_id(&self) -> Result<Option<&'a str>, InvalidValue>

The OnBehalfOfLocationID (144) field.

Source

pub fn deliver_to_sub_id(&self) -> Result<Option<&'a str>, InvalidValue>

The DeliverToSubID (129) field.

Source

pub fn deliver_to_location_id(&self) -> Result<Option<&'a str>, InvalidValue>

The DeliverToLocationID (145) field.

Source

pub fn poss_dup_flag(&self) -> Result<Option<bool>, InvalidValue>

The PossDupFlag (43) field.

Source

pub fn poss_resend(&self) -> Result<Option<bool>, InvalidValue>

The PossResend (97) field.

Source

pub fn sending_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The SendingTime (52) field.

Source

pub fn orig_sending_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The OrigSendingTime (122) field.

Source

pub fn xml_data_len(&self) -> Result<Option<i64>, InvalidValue>

The XmlDataLen (212) field.

Source

pub fn xml_data(&self) -> Option<&'a [u8]>

The XmlData (213) field.

Source

pub fn message_encoding( &self, ) -> Result<Option<MessageEncoding<'a>>, InvalidValue>

The MessageEncoding (347) field.

Source

pub fn last_msg_seq_num_processed(&self) -> Result<Option<i64>, InvalidValue>

The LastMsgSeqNumProcessed (369) field.

Source

pub fn hops(&self) -> Result<Instances<'a, Instance<'a>>, InvalidValue>

The instances of the NoHops (627) group.

Trait Implementations§

Source§

impl<'a> Clone for Header<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Header<'a>

Source§

impl<'a> Debug for Header<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<Scope<'a>> for Header<'a>

Source§

fn from(scope: Scope<'a>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Forget for Header<'a>

§

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

§

impl<'a> Move 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.