pub struct Advertisement(/* private fields */);Expand description
The Advertisement (35=7) message.
Implementations§
Source§impl Advertisement
impl Advertisement
pub const MSG_TYPE: &[u8] = b"7"
pub fn from_raw(raw: RawMessage) -> Self
pub fn raw(&self) -> &RawMessage
pub fn header(&self) -> Header<'_>
pub fn trailer(&self) -> Trailer<'_>
Sourcepub fn adv_trans_type(&self) -> Result<Option<AdvTransType<'_>>, InvalidValue>
pub fn adv_trans_type(&self) -> Result<Option<AdvTransType<'_>>, InvalidValue>
The AdvTransType (5) field.
Sourcepub fn adv_ref_id(&self) -> Result<Option<&str>, InvalidValue>
pub fn adv_ref_id(&self) -> Result<Option<&str>, InvalidValue>
The AdvRefID (3) field.
Sourcepub fn instrument(&self) -> Instrument<'_>
pub fn instrument(&self) -> Instrument<'_>
The Instrument component.
Sourcepub fn legs(&self) -> Result<Instances<'_, InstrmtLegGrp<'_>>, InvalidValue>
pub fn legs(&self) -> Result<Instances<'_, InstrmtLegGrp<'_>>, InvalidValue>
The instances of the NoLegs (555) group.
Sourcepub fn underlyings(
&self,
) -> Result<Instances<'_, UndInstrmtGrp<'_>>, InvalidValue>
pub fn underlyings( &self, ) -> Result<Instances<'_, UndInstrmtGrp<'_>>, InvalidValue>
The instances of the NoUnderlyings (711) group.
Sourcepub fn trade_date(&self) -> Result<Option<Date>, InvalidValue>
pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue>
The TradeDate (75) field.
Sourcepub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
The TransactTime (60) field.
Sourcepub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue>
pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue>
The EncodedTextLen (354) field.
Sourcepub fn encoded_text(&self) -> Option<&[u8]>
pub fn encoded_text(&self) -> Option<&[u8]>
The EncodedText (355) field.
Sourcepub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue>
pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue>
The TradingSessionID (336) field.
Sourcepub fn trading_session_sub_id(&self) -> Result<Option<&str>, InvalidValue>
pub fn trading_session_sub_id(&self) -> Result<Option<&str>, InvalidValue>
The TradingSessionSubID (625) field.
Trait Implementations§
Source§impl Debug for Advertisement
impl Debug for Advertisement
Auto Trait Implementations§
impl !Freeze for Advertisement
impl Forget for Advertisement
impl Move for Advertisement
impl RefUnwindSafe for Advertisement
impl Send for Advertisement
impl Sync for Advertisement
impl Unpin for Advertisement
impl UnsafeUnpin for Advertisementwhere
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RawField>: UnsafeUnpin,
impl UnwindSafe for Advertisementwhere
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more