Skip to main content

InstrumentLeg

Struct InstrumentLeg 

Source
pub struct InstrumentLeg<'a>(/* private fields */);
Expand description

The fields of the InstrumentLeg component.

Implementations§

Source§

impl<'a> InstrumentLeg<'a>

Source

pub fn raw(&self) -> Scope<'a>

Source

pub fn leg_symbol(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSymbol (600) field.

Source

pub fn leg_symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSymbolSfx (601) field.

Source

pub fn leg_security_id(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecurityID (602) field.

Source

pub fn leg_security_id_source(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecurityIDSource (603) field.

Source

pub fn leg_security_alt_id( &self, ) -> Result<Instances<'a, LegSecAltIDGrp<'a>>, InvalidValue>

The instances of the NoLegSecurityAltID (604) group.

Source

pub fn leg_product(&self) -> Result<Option<i64>, InvalidValue>

The LegProduct (607) field.

Source

pub fn leg_cfi_code(&self) -> Result<Option<&'a str>, InvalidValue>

The LegCFICode (608) field.

Source

pub fn leg_security_type(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecurityType (609) field.

Source

pub fn leg_security_sub_type(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecuritySubType (764) field.

Source

pub fn leg_maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue>

The LegMaturityMonthYear (610) field.

Source

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

The LegMaturityDate (611) field.

Source

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

The LegCouponPaymentDate (248) field.

Source

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

The LegIssueDate (249) field.

Source

pub fn leg_repo_collateral_security_type( &self, ) -> Result<Option<&'a str>, InvalidValue>

The LegRepoCollateralSecurityType (250) field.

Source

pub fn leg_repurchase_term(&self) -> Result<Option<i64>, InvalidValue>

The LegRepurchaseTerm (251) field.

Source

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

The LegRepurchaseRate (252) field.

Source

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

The LegFactor (253) field.

Source

pub fn leg_credit_rating(&self) -> Result<Option<&'a str>, InvalidValue>

The LegCreditRating (257) field.

Source

pub fn leg_instr_registry(&self) -> Result<Option<&'a str>, InvalidValue>

The LegInstrRegistry (599) field.

Source

pub fn leg_country_of_issue(&self) -> Result<Option<&'a str>, InvalidValue>

The LegCountryOfIssue (596) field.

Source

pub fn leg_state_or_province_of_issue( &self, ) -> Result<Option<&'a str>, InvalidValue>

The LegStateOrProvinceOfIssue (597) field.

Source

pub fn leg_locale_of_issue(&self) -> Result<Option<&'a str>, InvalidValue>

The LegLocaleOfIssue (598) field.

Source

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

The LegRedemptionDate (254) field.

Source

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

The LegStrikePrice (612) field.

Source

pub fn leg_strike_currency(&self) -> Result<Option<&'a str>, InvalidValue>

The LegStrikeCurrency (942) field.

Source

pub fn leg_opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue>

The LegOptAttribute (613) field.

Source

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

The LegContractMultiplier (614) field.

Source

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

The LegCouponRate (615) field.

Source

pub fn leg_security_exchange(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecurityExchange (616) field.

Source

pub fn leg_issuer(&self) -> Result<Option<&'a str>, InvalidValue>

The LegIssuer (617) field.

Source

pub fn encoded_leg_issuer_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedLegIssuerLen (618) field.

Source

pub fn encoded_leg_issuer(&self) -> Option<&'a [u8]>

The EncodedLegIssuer (619) field.

Source

pub fn leg_security_desc(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSecurityDesc (620) field.

Source

pub fn encoded_leg_security_desc_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedLegSecurityDescLen (621) field.

Source

pub fn encoded_leg_security_desc(&self) -> Option<&'a [u8]>

The EncodedLegSecurityDesc (622) field.

Source

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

The LegRatioQty (623) field.

Source

pub fn leg_side(&self) -> Result<Option<&'a str>, InvalidValue>

The LegSide (624) field.

Source

pub fn leg_currency(&self) -> Result<Option<&'a str>, InvalidValue>

The LegCurrency (556) field.

Source

pub fn leg_pool(&self) -> Result<Option<&'a str>, InvalidValue>

The LegPool (740) field.

Source

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

The LegDatedDate (739) field.

Source

pub fn leg_contract_settl_month( &self, ) -> Result<Option<MonthYear>, InvalidValue>

The LegContractSettlMonth (955) field.

Source

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

The LegInterestAccrualDate (956) field.

Trait Implementations§

Source§

impl<'a> Clone for InstrumentLeg<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for InstrumentLeg<'a>

Source§

impl Debug for InstrumentLeg<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for InstrumentLeg<'a>

§

impl<'a> Freeze for InstrumentLeg<'a>

§

impl<'a> Move for InstrumentLeg<'a>

§

impl<'a> RefUnwindSafe for InstrumentLeg<'a>

§

impl<'a> Send for InstrumentLeg<'a>

§

impl<'a> Sync for InstrumentLeg<'a>

§

impl<'a> Unpin for InstrumentLeg<'a>

§

impl<'a> UnsafeUnpin for InstrumentLeg<'a>

§

impl<'a> UnwindSafe for InstrumentLeg<'a>

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 = !

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.