Skip to main content

Instrument

Struct Instrument 

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

The fields of the Instrument component.

Implementations§

Source§

impl<'a> Instrument<'a>

Source

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

Source

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

The Symbol (55) field.

Source

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

The SymbolSfx (65) field.

Source

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

The SecurityID (48) field.

Source

pub fn security_id_source( &self, ) -> Result<Option<SecurityIDSource<'a>>, InvalidValue>

The SecurityIDSource (22) field.

Source

pub fn security_alt_id( &self, ) -> Result<Instances<'a, SecAltIDGrp<'a>>, InvalidValue>

The instances of the NoSecurityAltID (454) group.

Source

pub fn product(&self) -> Result<Option<Product>, InvalidValue>

The Product (460) field.

Source

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

The CFICode (461) field.

Source

pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue>

The SecurityType (167) field.

Source

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

The SecuritySubType (762) field.

Source

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

The MaturityMonthYear (200) field.

Source

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

The MaturityDate (541) field.

Source

pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue>

The PutOrCall (201) field.

Source

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

The CouponPaymentDate (224) field.

Source

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

The IssueDate (225) field.

Source

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

The RepoCollateralSecurityType (239) field.

Source

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

The RepurchaseTerm (226) field.

Source

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

The RepurchaseRate (227) field.

Source

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

The Factor (228) field.

Source

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

The CreditRating (255) field.

Source

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

The InstrRegistry (543) field.

Source

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

The CountryOfIssue (470) field.

Source

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

The StateOrProvinceOfIssue (471) field.

Source

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

The LocaleOfIssue (472) field.

Source

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

The RedemptionDate (240) field.

Source

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

The StrikePrice (202) field.

Source

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

The StrikeCurrency (947) field.

Source

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

The OptAttribute (206) field.

Source

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

The ContractMultiplier (231) field.

Source

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

The CouponRate (223) field.

Source

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

The SecurityExchange (207) field.

Source

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

The Issuer (106) field.

Source

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

The EncodedIssuerLen (348) field.

Source

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

The EncodedIssuer (349) field.

Source

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

The SecurityDesc (107) field.

Source

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

The EncodedSecurityDescLen (350) field.

Source

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

The EncodedSecurityDesc (351) field.

Source

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

The Pool (691) field.

Source

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

The ContractSettlMonth (667) field.

Source

pub fn cp_program(&self) -> Result<Option<CPProgram>, InvalidValue>

The CPProgram (875) field.

Source

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

The CPRegType (876) field.

Source

pub fn events(&self) -> Result<Instances<'a, EvntGrp<'a>>, InvalidValue>

The instances of the NoEvents (864) group.

Source

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

The DatedDate (873) field.

Source

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

The InterestAccrualDate (874) field.

Trait Implementations§

Source§

impl<'a> Clone for Instrument<'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 Instrument<'a>

Source§

impl Debug for Instrument<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for Instrument<'a>

§

impl<'a> Freeze for Instrument<'a>

§

impl<'a> Move for Instrument<'a>

§

impl<'a> RefUnwindSafe for Instrument<'a>

§

impl<'a> Send for Instrument<'a>

§

impl<'a> Sync for Instrument<'a>

§

impl<'a> Unpin for Instrument<'a>

§

impl<'a> UnsafeUnpin for Instrument<'a>

§

impl<'a> UnwindSafe for Instrument<'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.