Struct Allocation

Source
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 no_orders_len(&self) -> usize

Source

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

Source

pub fn iter_no_orders(&self) -> GroupIterator<'_, Self, NoOrders>

Source

pub fn no_execs_len(&self) -> usize

Source

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

Source

pub fn iter_no_execs(&self) -> GroupIterator<'_, Self, 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_issuer(&self) -> Option<Issuer>

Source

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

Source

pub fn get_shares(&self) -> Shares

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_net_money(&self) -> Option<NetMoney>

Source

pub fn no_misc_fees_len(&self) -> usize

Source

pub fn clone_group_no_misc_fees(&self, index: usize) -> Option<NoMiscFees>

Source

pub fn iter_no_misc_fees(&self) -> GroupIterator<'_, Self, NoMiscFees>

Source

pub fn get_settl_curr_amt(&self) -> Option<SettlCurrAmt>

Source

pub fn get_settl_currency(&self) -> Option<SettlCurrency>

Source

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

Source

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

Source

pub fn no_allocs_len(&self) -> usize

Source

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

Source

pub fn iter_no_allocs(&self) -> GroupIterator<'_, Self, 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_issuer(&mut self, value: Issuer) -> Result<&Self, QuickFixError>

Source

pub fn remove_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_shares(&mut self, value: Shares) -> 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_net_money(&mut self, value: NetMoney) -> Result<&Self, QuickFixError>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn remove_settl_currency(&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 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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

Source§

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

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.