Struct CreditIndexId
pub struct CreditIndexId {
pub family: String,
pub series: u32,
pub version: u32,
}Expand description
What an index contract references: the family, the series and the version — the version incremented by each credit event, and part of the identity because both versions trade for a time.
Spelled FAMILY.SERIESvVERSION — CDX.NA.IG.45v1.
Fields§
§family: StringThe index family, "CDX.NA.IG" or "ITRAXX.EUROPE".
series: u32The series.
version: u32The version, 1 at launch.
Implementations§
§impl CreditIndexId
impl CreditIndexId
Trait Implementations§
§impl Clone for CreditIndexId
impl Clone for CreditIndexId
§fn clone(&self) -> CreditIndexId
fn clone(&self) -> CreditIndexId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CreditIndexId
impl Debug for CreditIndexId
§impl Display for CreditIndexId
impl Display for CreditIndexId
impl Eq for CreditIndexId
§impl From<CreditIndexId> for CreditCurveId
impl From<CreditIndexId> for CreditCurveId
§fn from(index: CreditIndexId) -> Self
fn from(index: CreditIndexId) -> Self
Converts to this type from the input type.
§impl FromStr for CreditIndexId
impl FromStr for CreditIndexId
§impl Hash for CreditIndexId
impl Hash for CreditIndexId
§impl Ord for CreditIndexId
impl Ord for CreditIndexId
§fn cmp(&self, other: &CreditIndexId) -> Ordering
fn cmp(&self, other: &CreditIndexId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for CreditIndexId
impl PartialEq for CreditIndexId
§impl PartialOrd for CreditIndexId
impl PartialOrd for CreditIndexId
impl StructuralPartialEq for CreditIndexId
Auto Trait Implementations§
impl Freeze for CreditIndexId
impl RefUnwindSafe for CreditIndexId
impl Send for CreditIndexId
impl Sync for CreditIndexId
impl Unpin for CreditIndexId
impl UnsafeUnpin for CreditIndexId
impl UnwindSafe for CreditIndexId
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