Skip to main content

SecurityTypes

Struct SecurityTypes 

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

SecurityTypes is the fix44 SecurityTypes type, MsgType = w.

Fields§

§message: Message

Implementations§

Source§

impl SecurityTypes

Source

pub fn new( security_req_id: SecurityReqIDField, security_response_id: SecurityResponseIDField, security_response_type: SecurityResponseTypeField, ) -> Self

Creates a new SecurityTypes with required fields.

Source

pub fn from_message(msg: Message) -> Self

Creates a SecurityTypes from an existing Message.

Source

pub fn to_message(self) -> Message

Returns the underlying Message.

Source

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

Sets EncodedText, Tag 355.

Source

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

Gets EncodedText, Tag 355.

Source

pub fn has_encoded_text(&self) -> bool

Returns true if EncodedText is present, Tag 355.

Source

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

Sets EncodedTextLen, Tag 354.

Source

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

Gets EncodedTextLen, Tag 354.

Source

pub fn has_encoded_text_len(&self) -> bool

Returns true if EncodedTextLen is present, Tag 354.

Source

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

Sets LastFragment, Tag 893.

Source

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

Gets LastFragment, Tag 893.

Source

pub fn has_last_fragment(&self) -> bool

Returns true if LastFragment is present, Tag 893.

Source

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

Sets NoSecurityTypes, Tag 558.

Source

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

Gets NoSecurityTypes, Tag 558.

Source

pub fn has_no_security_types(&self) -> bool

Returns true if NoSecurityTypes is present, Tag 558.

Source

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

Sets SecurityReqID, Tag 320.

Source

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

Gets SecurityReqID, Tag 320.

Source

pub fn has_security_req_id(&self) -> bool

Returns true if SecurityReqID is present, Tag 320.

Source

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

Sets SecurityResponseID, Tag 322.

Source

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

Gets SecurityResponseID, Tag 322.

Source

pub fn has_security_response_id(&self) -> bool

Returns true if SecurityResponseID is present, Tag 322.

Source

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

Sets SecurityResponseType, Tag 323.

Source

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

Gets SecurityResponseType, Tag 323.

Source

pub fn has_security_response_type(&self) -> bool

Returns true if SecurityResponseType is present, Tag 323.

Source

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

Sets SubscriptionRequestType, Tag 263.

Source

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

Gets SubscriptionRequestType, Tag 263.

Source

pub fn has_subscription_request_type(&self) -> bool

Returns true if SubscriptionRequestType is present, Tag 263.

Source

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

Sets Text, Tag 58.

Source

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

Gets Text, Tag 58.

Source

pub fn has_text(&self) -> bool

Returns true if Text is present, Tag 58.

Source

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

Sets TotNoSecurityTypes, Tag 557.

Source

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

Gets TotNoSecurityTypes, Tag 557.

Source

pub fn has_tot_no_security_types(&self) -> bool

Returns true if TotNoSecurityTypes is present, Tag 557.

Source

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

Sets TradingSessionID, Tag 336.

Source

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

Gets TradingSessionID, Tag 336.

Source

pub fn has_trading_session_id(&self) -> bool

Returns true if TradingSessionID is present, Tag 336.

Source

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

Sets TradingSessionSubID, Tag 625.

Source

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

Gets TradingSessionSubID, Tag 625.

Source

pub fn has_trading_session_sub_id(&self) -> bool

Returns true if TradingSessionSubID is present, Tag 625.

Auto Trait Implementations§

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.