Skip to main content

Logon

Struct Logon 

Source
pub struct Logon {
    pub message: Message,
}
Expand description

Logon is the fix42 Logon type, MsgType = A.

Fields§

§message: Message

Implementations§

Source§

impl Logon

Source

pub fn new( encrypt_method: EncryptMethodField, heart_bt_int: HeartBtIntField, ) -> Self

Creates a new Logon with required fields.

Source

pub fn from_message(msg: Message) -> Self

Creates a Logon from an existing Message.

Source

pub fn to_message(self) -> Message

Returns the underlying Message.

Source

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

Sets EncryptMethod, Tag 98.

Source

pub fn get_encrypt_method(&self) -> Result<isize, MessageRejectErrorEnum>

Gets EncryptMethod, Tag 98.

Source

pub fn has_encrypt_method(&self) -> bool

Returns true if EncryptMethod is present, Tag 98.

Source

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

Sets HeartBtInt, Tag 108.

Source

pub fn get_heart_bt_int(&self) -> Result<isize, MessageRejectErrorEnum>

Gets HeartBtInt, Tag 108.

Source

pub fn has_heart_bt_int(&self) -> bool

Returns true if HeartBtInt is present, Tag 108.

Source

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

Sets MaxMessageSize, Tag 383.

Source

pub fn get_max_message_size(&self) -> Result<isize, MessageRejectErrorEnum>

Gets MaxMessageSize, Tag 383.

Source

pub fn has_max_message_size(&self) -> bool

Returns true if MaxMessageSize is present, Tag 383.

Source

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

Sets NoMsgTypes, Tag 384.

Source

pub fn get_no_msg_types(&self) -> Result<isize, MessageRejectErrorEnum>

Gets NoMsgTypes, Tag 384.

Source

pub fn has_no_msg_types(&self) -> bool

Returns true if NoMsgTypes is present, Tag 384.

Source

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

Sets RawData, Tag 96.

Source

pub fn get_raw_data(&self) -> Result<String, MessageRejectErrorEnum>

Gets RawData, Tag 96.

Source

pub fn has_raw_data(&self) -> bool

Returns true if RawData is present, Tag 96.

Source

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

Sets RawDataLength, Tag 95.

Source

pub fn get_raw_data_length(&self) -> Result<isize, MessageRejectErrorEnum>

Gets RawDataLength, Tag 95.

Source

pub fn has_raw_data_length(&self) -> bool

Returns true if RawDataLength is present, Tag 95.

Source

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

Sets ResetSeqNumFlag, Tag 141.

Source

pub fn get_reset_seq_num_flag(&self) -> Result<bool, MessageRejectErrorEnum>

Gets ResetSeqNumFlag, Tag 141.

Source

pub fn has_reset_seq_num_flag(&self) -> bool

Returns true if ResetSeqNumFlag is present, Tag 141.

Auto Trait Implementations§

§

impl !Freeze for Logon

§

impl RefUnwindSafe for Logon

§

impl Send for Logon

§

impl Sync for Logon

§

impl Unpin for Logon

§

impl UnsafeUnpin for Logon

§

impl UnwindSafe for Logon

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.