Skip to main content

quote_family

Function quote_family 

pub fn quote_family(code: &str) -> Result<&'static str, QuoteFamilyError>
Expand description

The tagged-quote family (Quote.type) pillars on template code carry — the registry-inferred kind the recipe builder stamps on a pillar, so callers never restate it. The mapping mirrors the calibration-helper dispatch in curves::recipe; an Xccy template maps to the basis-spread "Xccy" family (the directly-observable "FixedFloatXccy" reading is authored through its dedicated builder verb, never inferred). Errors on an unknown code and on a template kind that is not a curve pillar.

§Errors

QuoteFamilyError::UnknownCode carrying code when the registry holds no template under it, and the not-a-pillar variant when the template it names is of a kind no curve pillar is quoted on.