Skip to main content

SecurityDefinition

Struct SecurityDefinition 

Source
pub struct SecurityDefinition(/* private fields */);
Expand description

The SecurityDefinition (35=d) message.

Implementations§

Source§

impl SecurityDefinition

Source

pub const MSG_TYPE: &[u8] = b"d"

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn security_req_id(&self) -> Result<Option<&str>, InvalidValue>

The SecurityReqID (320) field.

Source

pub fn security_response_id(&self) -> Result<Option<&str>, InvalidValue>

The SecurityResponseID (322) field.

Source

pub fn security_response_type( &self, ) -> Result<Option<SecurityResponseType>, InvalidValue>

The SecurityResponseType (323) field.

Source

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

The TotalNumSecurities (393) field.

Source

pub fn symbol(&self) -> Result<Option<&str>, InvalidValue>

The Symbol (55) field.

Source

pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue>

The SymbolSfx (65) field.

Source

pub fn security_id(&self) -> Result<Option<&str>, InvalidValue>

The SecurityID (48) field.

Source

pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue>

The IDSource (22) field.

Source

pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue>

The SecurityType (167) field.

Source

pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue>

The MaturityMonthYear (200) field.

Source

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

The MaturityDay (205) field.

Source

pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue>

The PutOrCall (201) field.

Source

pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue>

The StrikePrice (202) field.

Source

pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue>

The OptAttribute (206) field.

Source

pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue>

The ContractMultiplier (231) field.

Source

pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue>

The CouponRate (223) field.

Source

pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue>

The SecurityExchange (207) field.

Source

pub fn issuer(&self) -> Result<Option<&str>, InvalidValue>

The Issuer (106) field.

Source

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

The EncodedIssuerLen (348) field.

Source

pub fn encoded_issuer(&self) -> Option<&[u8]>

The EncodedIssuer (349) field.

Source

pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue>

The SecurityDesc (107) field.

Source

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

The EncodedSecurityDescLen (350) field.

Source

pub fn encoded_security_desc(&self) -> Option<&[u8]>

The EncodedSecurityDesc (351) field.

Source

pub fn currency(&self) -> Result<Option<&str>, InvalidValue>

The Currency (15) field.

Source

pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue>

The TradingSessionID (336) field.

Source

pub fn text(&self) -> Result<Option<&str>, InvalidValue>

The Text (58) field.

Source

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

The EncodedTextLen (354) field.

Source

pub fn encoded_text(&self) -> Option<&[u8]>

The EncodedText (355) field.

Source

pub fn related_sym(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoRelatedSym (146) group.

Trait Implementations§

Source§

impl Debug for SecurityDefinition

Source§

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

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

impl Display for SecurityDefinition

Source§

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

Formats the value using the given formatter. Read more

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.