pub struct Advertisement { /* private fields */ }
Implementations§
Source§impl Advertisement
impl Advertisement
pub const MSG_TYPE_BYTES: &'static str = "7"
pub const MSG_TYPE: MsgType
pub fn header(&mut self) -> Header<'_>
pub fn header_mut(&mut self) -> HeaderMut<'_>
pub fn trailer(&mut self) -> Trailer<'_>
pub fn trailer_mut(&mut self) -> TrailerMut<'_>
Sourcepub fn to_fix_string(&self) -> String
pub fn to_fix_string(&self) -> String
Convert inner message as FIX text.
This method is only here for debug / tests purposes. Do not use this in real production code.
Source§impl Advertisement
impl Advertisement
pub fn try_new( adv_id: AdvId, adv_trans_type: AdvTransType, symbol: Symbol, adv_side: AdvSide, shares: Shares, ) -> Result<Self, QuickFixError>
Source§impl Advertisement
impl Advertisement
pub fn get_adv_id(&self) -> AdvId
pub fn get_adv_trans_type(&self) -> AdvTransType
pub fn get_adv_ref_id(&self) -> Option<AdvRefID>
pub fn get_symbol(&self) -> Symbol
pub fn get_symbol_sfx(&self) -> Option<SymbolSfx>
pub fn get_security_id(&self) -> Option<SecurityID>
pub fn get_id_source(&self) -> Option<IDSource>
pub fn get_security_type(&self) -> Option<SecurityType>
pub fn get_maturity_month_year(&self) -> Option<MaturityMonthYear>
pub fn get_maturity_day(&self) -> Option<MaturityDay>
pub fn get_put_or_call(&self) -> Option<PutOrCall>
pub fn get_strike_price(&self) -> Option<StrikePrice>
pub fn get_opt_attribute(&self) -> Option<OptAttribute>
pub fn get_security_exchange(&self) -> Option<SecurityExchange>
pub fn get_issuer(&self) -> Option<Issuer>
pub fn get_security_desc(&self) -> Option<SecurityDesc>
pub fn get_adv_side(&self) -> AdvSide
pub fn get_price(&self) -> Option<Price>
pub fn get_currency(&self) -> Option<Currency>
pub fn get_trade_date(&self) -> Option<TradeDate>
pub fn get_transact_time(&self) -> Option<TransactTime>
pub fn get_text(&self) -> Option<Text>
pub fn get_url_link(&self) -> Option<URLLink>
pub fn get_last_mkt(&self) -> Option<LastMkt>
pub fn set_adv_id(&mut self, value: AdvId) -> Result<&Self, QuickFixError>
pub fn set_adv_trans_type( &mut self, value: AdvTransType, ) -> Result<&Self, QuickFixError>
pub fn set_adv_ref_id( &mut self, value: AdvRefID, ) -> Result<&Self, QuickFixError>
pub fn remove_adv_ref_id(&mut self) -> Result<&Self, QuickFixError>
pub fn set_symbol(&mut self, value: Symbol) -> Result<&Self, QuickFixError>
pub fn set_symbol_sfx( &mut self, value: SymbolSfx, ) -> Result<&Self, QuickFixError>
pub fn remove_symbol_sfx(&mut self) -> Result<&Self, QuickFixError>
pub fn set_security_id( &mut self, value: SecurityID, ) -> Result<&Self, QuickFixError>
pub fn remove_security_id(&mut self) -> Result<&Self, QuickFixError>
pub fn set_id_source(&mut self, value: IDSource) -> Result<&Self, QuickFixError>
pub fn remove_id_source(&mut self) -> Result<&Self, QuickFixError>
pub fn set_security_type( &mut self, value: SecurityType, ) -> Result<&Self, QuickFixError>
pub fn remove_security_type(&mut self) -> Result<&Self, QuickFixError>
pub fn set_maturity_month_year( &mut self, value: MaturityMonthYear, ) -> Result<&Self, QuickFixError>
pub fn remove_maturity_month_year(&mut self) -> Result<&Self, QuickFixError>
pub fn set_maturity_day( &mut self, value: MaturityDay, ) -> Result<&Self, QuickFixError>
pub fn remove_maturity_day(&mut self) -> Result<&Self, QuickFixError>
pub fn set_put_or_call( &mut self, value: PutOrCall, ) -> Result<&Self, QuickFixError>
pub fn remove_put_or_call(&mut self) -> Result<&Self, QuickFixError>
pub fn set_strike_price( &mut self, value: StrikePrice, ) -> Result<&Self, QuickFixError>
pub fn remove_strike_price(&mut self) -> Result<&Self, QuickFixError>
pub fn set_opt_attribute( &mut self, value: OptAttribute, ) -> Result<&Self, QuickFixError>
pub fn remove_opt_attribute(&mut self) -> Result<&Self, QuickFixError>
pub fn set_security_exchange( &mut self, value: SecurityExchange, ) -> Result<&Self, QuickFixError>
pub fn remove_security_exchange(&mut self) -> Result<&Self, QuickFixError>
pub fn set_issuer(&mut self, value: Issuer) -> Result<&Self, QuickFixError>
pub fn remove_issuer(&mut self) -> Result<&Self, QuickFixError>
pub fn set_security_desc( &mut self, value: SecurityDesc, ) -> Result<&Self, QuickFixError>
pub fn remove_security_desc(&mut self) -> Result<&Self, QuickFixError>
pub fn set_adv_side(&mut self, value: AdvSide) -> Result<&Self, QuickFixError>
pub fn set_price(&mut self, value: Price) -> Result<&Self, QuickFixError>
pub fn remove_price(&mut self) -> Result<&Self, QuickFixError>
pub fn set_currency(&mut self, value: Currency) -> Result<&Self, QuickFixError>
pub fn remove_currency(&mut self) -> Result<&Self, QuickFixError>
pub fn set_trade_date( &mut self, value: TradeDate, ) -> Result<&Self, QuickFixError>
pub fn remove_trade_date(&mut self) -> Result<&Self, QuickFixError>
pub fn set_transact_time( &mut self, value: TransactTime, ) -> Result<&Self, QuickFixError>
pub fn remove_transact_time(&mut self) -> Result<&Self, QuickFixError>
pub fn set_text(&mut self, value: Text) -> Result<&Self, QuickFixError>
pub fn remove_text(&mut self) -> Result<&Self, QuickFixError>
pub fn set_url_link(&mut self, value: URLLink) -> Result<&Self, QuickFixError>
pub fn remove_url_link(&mut self) -> Result<&Self, QuickFixError>
pub fn set_last_mkt(&mut self, value: LastMkt) -> Result<&Self, QuickFixError>
pub fn remove_last_mkt(&mut self) -> Result<&Self, QuickFixError>
Trait Implementations§
Source§impl Clone for Advertisement
impl Clone for Advertisement
Source§fn clone(&self) -> Advertisement
fn clone(&self) -> Advertisement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Advertisement
impl Debug for Advertisement
Source§impl From<Advertisement> for Message
impl From<Advertisement> for Message
Source§fn from(input: Advertisement) -> Self
fn from(input: Advertisement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Advertisement
impl RefUnwindSafe for Advertisement
impl !Send for Advertisement
impl !Sync for Advertisement
impl Unpin for Advertisement
impl UnwindSafe for Advertisement
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