pub struct InstrumentSpec {
pub revision: SpecRevision,
pub instrument: InstrumentId,
pub effective: EffectiveInterval,
pub status: ListingStatus,
pub assets: InstrumentAssets,
pub price: PriceRules,
pub quantity: QuantityRules,
pub notional: Option<NotionalRules>,
pub economics: InstrumentEconomics,
pub aliases: BTreeSet<InstrumentAlias>,
}Expand description
One effective-dated instrument specification.
Fields§
§revision: SpecRevision§instrument: InstrumentId§effective: EffectiveInterval§status: ListingStatus§assets: InstrumentAssets§price: PriceRules§quantity: QuantityRules§notional: Option<NotionalRules>§economics: InstrumentEconomics§aliases: BTreeSet<InstrumentAlias>Implementations§
Source§impl InstrumentSpec
impl InstrumentSpec
pub fn validate(&self) -> Result<(), SpecValidationError>
Trait Implementations§
Source§impl Clone for InstrumentSpec
impl Clone for InstrumentSpec
Source§impl Debug for InstrumentSpec
impl Debug for InstrumentSpec
Source§impl<'de> Deserialize<'de> for InstrumentSpec
impl<'de> Deserialize<'de> for InstrumentSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstrumentSpec
Source§impl PartialEq for InstrumentSpec
impl PartialEq for InstrumentSpec
Source§impl Serialize for InstrumentSpec
impl Serialize for InstrumentSpec
impl StructuralPartialEq for InstrumentSpec
Auto Trait Implementations§
impl Freeze for InstrumentSpec
impl RefUnwindSafe for InstrumentSpec
impl Send for InstrumentSpec
impl Sync for InstrumentSpec
impl Unpin for InstrumentSpec
impl UnsafeUnpin for InstrumentSpec
impl UnwindSafe for InstrumentSpec
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