Struct ReferenceEntity
pub struct ReferenceEntity {
pub entity: String,
pub seniority: Seniority,
pub doc_clause: DocClause,
}Expand description
What a single-name credit contract references: the entity, the seniority of the debt it protects and the documentation clause it trades under.
Spelled ENTITY/SENIORITY/DOCCLAUSE, read from the right — the seniority
and the clause are closed vocabularies, so the entity may itself hold a
/ and still parse back. Ordered by the three fields in that order, so a
market keyed by it enumerates an issuer’s tiers together.
Fields§
§entity: StringThe reference entity’s name — a free string, as a RED code or an LEI would be if a registry supplied it.
seniority: SeniorityThe repayment seniority of the debt the contract protects.
doc_clause: DocClauseThe documentation clause the contract trades under.
Implementations§
§impl ReferenceEntity
impl ReferenceEntity
pub fn new(
entity: impl Into<String>,
seniority: Seniority,
doc_clause: DocClause,
) -> Self
pub fn new( entity: impl Into<String>, seniority: Seniority, doc_clause: DocClause, ) -> Self
A reference entity, every part stated; the entity’s surrounding whitespace taken off, as its spelling’s parser takes it off.
pub fn in_currency(self, currency: Currency) -> CreditCurveId
pub fn in_currency(self, currency: Currency) -> CreditCurveId
This reference in currency: the identity the market keys its curve
by.
Trait Implementations§
§impl Clone for ReferenceEntity
impl Clone for ReferenceEntity
§fn clone(&self) -> ReferenceEntity
fn clone(&self) -> ReferenceEntity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more