Skip to main content

Advertisement

Struct Advertisement 

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

The Advertisement (35=7) message.

Implementations§

Source§

impl Advertisement

Source

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

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 adv_id(&self) -> Result<Option<&str>, InvalidValue>

The AdvId (2) field.

Source

pub fn adv_trans_type(&self) -> Result<Option<AdvTransType<'_>>, InvalidValue>

The AdvTransType (5) field.

Source

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

The AdvRefID (3) 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 adv_side(&self) -> Result<Option<AdvSide<'_>>, InvalidValue>

The AdvSide (4) field.

Source

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

The Shares (53) field.

Source

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

The Price (44) field.

Source

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

The Currency (15) field.

Source

pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue>

The TradeDate (75) field.

Source

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

The TransactTime (60) 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.

The URLLink (149) field.

Source

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

The LastMkt (30) field.

Source

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

The TradingSessionID (336) field.

Trait Implementations§

Source§

impl Debug for Advertisement

Source§

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

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

impl Display for Advertisement

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.