pub struct Allocation { /* private fields */ }

Implementations§

source§

impl Allocation

source

pub const MSG_TYPE_BYTES: &'static str = "J"

source

pub const MSG_TYPE: MsgType = _

source

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

source

pub fn header_mut(&mut self) -> HeaderMut<'_>

source

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

source

pub fn trailer_mut(&mut self) -> TrailerMut<'_>

source

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 Allocation

source

pub fn try_new( alloc_id: AllocID, alloc_trans_type: AllocTransType, side: Side, symbol: Symbol, shares: Shares, avg_px: AvgPx, trade_date: TradeDate ) -> Result<Self, QuickFixError>

source§

impl Allocation

source

pub fn get_alloc_id(&self) -> AllocID

source

pub fn get_alloc_trans_type(&self) -> AllocTransType

source

pub fn get_ref_alloc_id(&self) -> Option<RefAllocID>

source

pub fn clone_group_no_orders(&self, index: usize) -> Option<NoOrders>

source

pub fn clone_group_no_execs(&self, index: usize) -> Option<NoExecs>

source

pub fn get_side(&self) -> Side

source

pub fn get_symbol(&self) -> Symbol

source

pub fn get_symbol_sfx(&self) -> Option<SymbolSfx>

source

pub fn get_security_id(&self) -> Option<SecurityID>

source

pub fn get_id_source(&self) -> Option<IDSource>

source

pub fn get_security_type(&self) -> Option<SecurityType>

source

pub fn get_maturity_month_year(&self) -> Option<MaturityMonthYear>

source

pub fn get_maturity_day(&self) -> Option<MaturityDay>

source

pub fn get_put_or_call(&self) -> Option<PutOrCall>

source

pub fn get_strike_price(&self) -> Option<StrikePrice>

source

pub fn get_opt_attribute(&self) -> Option<OptAttribute>

source

pub fn get_contract_multiplier(&self) -> Option<ContractMultiplier>

source

pub fn get_coupon_rate(&self) -> Option<CouponRate>

source

pub fn get_security_exchange(&self) -> Option<SecurityExchange>

source

pub fn get_issuer(&self) -> Option<Issuer>

source

pub fn get_encoded_issuer_len(&self) -> Option<EncodedIssuerLen>

source

pub fn get_encoded_issuer(&self) -> Option<EncodedIssuer>

source

pub fn get_security_desc(&self) -> Option<SecurityDesc>

source

pub fn get_encoded_security_desc_len(&self) -> Option<EncodedSecurityDescLen>

source

pub fn get_encoded_security_desc(&self) -> Option<EncodedSecurityDesc>

source

pub fn get_shares(&self) -> Shares

source

pub fn get_last_mkt(&self) -> Option<LastMkt>

source

pub fn get_trading_session_id(&self) -> Option<TradingSessionID>

source

pub fn get_avg_px(&self) -> AvgPx

source

pub fn get_currency(&self) -> Option<Currency>

source

pub fn get_avg_prx_precision(&self) -> Option<AvgPrxPrecision>

source

pub fn get_trade_date(&self) -> TradeDate

source

pub fn get_transact_time(&self) -> Option<TransactTime>

source

pub fn get_settlmnt_typ(&self) -> Option<SettlmntTyp>

source

pub fn get_fut_sett_date(&self) -> Option<FutSettDate>

source

pub fn get_gross_trade_amt(&self) -> Option<GrossTradeAmt>

source

pub fn get_net_money(&self) -> Option<NetMoney>

source

pub fn get_open_close(&self) -> Option<OpenClose>

source

pub fn get_text(&self) -> Option<Text>

source

pub fn get_encoded_text_len(&self) -> Option<EncodedTextLen>

source

pub fn get_encoded_text(&self) -> Option<EncodedText>

source

pub fn get_num_days_interest(&self) -> Option<NumDaysInterest>

source

pub fn get_accrued_interest_rate(&self) -> Option<AccruedInterestRate>

source

pub fn clone_group_no_allocs(&self, index: usize) -> Option<NoAllocs>

source

pub fn set_alloc_id(&mut self, value: AllocID) -> Result<&Self, QuickFixError>

source

pub fn set_alloc_trans_type( &mut self, value: AllocTransType ) -> Result<&Self, QuickFixError>

source

pub fn set_ref_alloc_id( &mut self, value: RefAllocID ) -> Result<&Self, QuickFixError>

source

pub fn remove_ref_alloc_id(&mut self) -> Result<&Self, QuickFixError>

source

pub fn add_no_orders(&mut self, value: NoOrders) -> Result<&Self, QuickFixError>

source

pub fn add_no_execs(&mut self, value: NoExecs) -> Result<&Self, QuickFixError>

source

pub fn set_side(&mut self, value: Side) -> Result<&Self, QuickFixError>

source

pub fn set_symbol(&mut self, value: Symbol) -> Result<&Self, QuickFixError>

source

pub fn set_symbol_sfx( &mut self, value: SymbolSfx ) -> Result<&Self, QuickFixError>

source

pub fn remove_symbol_sfx(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_security_id( &mut self, value: SecurityID ) -> Result<&Self, QuickFixError>

source

pub fn remove_security_id(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_id_source(&mut self, value: IDSource) -> Result<&Self, QuickFixError>

source

pub fn remove_id_source(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_security_type( &mut self, value: SecurityType ) -> Result<&Self, QuickFixError>

source

pub fn remove_security_type(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_maturity_month_year( &mut self, value: MaturityMonthYear ) -> Result<&Self, QuickFixError>

source

pub fn remove_maturity_month_year(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_maturity_day( &mut self, value: MaturityDay ) -> Result<&Self, QuickFixError>

source

pub fn remove_maturity_day(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_put_or_call( &mut self, value: PutOrCall ) -> Result<&Self, QuickFixError>

source

pub fn remove_put_or_call(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_strike_price( &mut self, value: StrikePrice ) -> Result<&Self, QuickFixError>

source

pub fn remove_strike_price(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_opt_attribute( &mut self, value: OptAttribute ) -> Result<&Self, QuickFixError>

source

pub fn remove_opt_attribute(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_contract_multiplier( &mut self, value: ContractMultiplier ) -> Result<&Self, QuickFixError>

source

pub fn remove_contract_multiplier(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_coupon_rate( &mut self, value: CouponRate ) -> Result<&Self, QuickFixError>

source

pub fn remove_coupon_rate(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_security_exchange( &mut self, value: SecurityExchange ) -> Result<&Self, QuickFixError>

source

pub fn remove_security_exchange(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_issuer(&mut self, value: Issuer) -> Result<&Self, QuickFixError>

source

pub fn remove_issuer(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_issuer_len( &mut self, value: EncodedIssuerLen ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_issuer_len(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_issuer( &mut self, value: EncodedIssuer ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_issuer(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_security_desc( &mut self, value: SecurityDesc ) -> Result<&Self, QuickFixError>

source

pub fn remove_security_desc(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_security_desc_len( &mut self, value: EncodedSecurityDescLen ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_security_desc_len( &mut self ) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_security_desc( &mut self, value: EncodedSecurityDesc ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_security_desc(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_shares(&mut self, value: Shares) -> Result<&Self, QuickFixError>

source

pub fn set_last_mkt(&mut self, value: LastMkt) -> Result<&Self, QuickFixError>

source

pub fn remove_last_mkt(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_trading_session_id( &mut self, value: TradingSessionID ) -> Result<&Self, QuickFixError>

source

pub fn remove_trading_session_id(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_avg_px(&mut self, value: AvgPx) -> Result<&Self, QuickFixError>

source

pub fn set_currency(&mut self, value: Currency) -> Result<&Self, QuickFixError>

source

pub fn remove_currency(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_avg_prx_precision( &mut self, value: AvgPrxPrecision ) -> Result<&Self, QuickFixError>

source

pub fn remove_avg_prx_precision(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_trade_date( &mut self, value: TradeDate ) -> Result<&Self, QuickFixError>

source

pub fn set_transact_time( &mut self, value: TransactTime ) -> Result<&Self, QuickFixError>

source

pub fn remove_transact_time(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_settlmnt_typ( &mut self, value: SettlmntTyp ) -> Result<&Self, QuickFixError>

source

pub fn remove_settlmnt_typ(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_fut_sett_date( &mut self, value: FutSettDate ) -> Result<&Self, QuickFixError>

source

pub fn remove_fut_sett_date(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_gross_trade_amt( &mut self, value: GrossTradeAmt ) -> Result<&Self, QuickFixError>

source

pub fn remove_gross_trade_amt(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_net_money(&mut self, value: NetMoney) -> Result<&Self, QuickFixError>

source

pub fn remove_net_money(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_open_close( &mut self, value: OpenClose ) -> Result<&Self, QuickFixError>

source

pub fn remove_open_close(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_text(&mut self, value: Text) -> Result<&Self, QuickFixError>

source

pub fn remove_text(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_text_len( &mut self, value: EncodedTextLen ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_text_len(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_encoded_text( &mut self, value: EncodedText ) -> Result<&Self, QuickFixError>

source

pub fn remove_encoded_text(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_num_days_interest( &mut self, value: NumDaysInterest ) -> Result<&Self, QuickFixError>

source

pub fn remove_num_days_interest(&mut self) -> Result<&Self, QuickFixError>

source

pub fn set_accrued_interest_rate( &mut self, value: AccruedInterestRate ) -> Result<&Self, QuickFixError>

source

pub fn remove_accrued_interest_rate(&mut self) -> Result<&Self, QuickFixError>

source

pub fn add_no_allocs(&mut self, value: NoAllocs) -> Result<&Self, QuickFixError>

Trait Implementations§

source§

impl Clone for Allocation

source§

fn clone(&self) -> Allocation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Allocation

source§

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

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

impl From<Allocation> for Message

source§

fn from(input: Allocation) -> Self

Converts to this type from the input type.
source§

impl From<Message> for Allocation

source§

fn from(input: Message) -> Self

Converts to this type from the input type.

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.