Struct TenorBasisTemplate
pub struct TenorBasisTemplate {
pub name: String,
pub spread: TenorBasisLeg,
pub base: TenorBasisLeg,
}Expand description
The conventions of a single-currency tenor-basis swap (a type = "TenorBasis"
projection pillar): a spread leg projecting one index against a base leg projecting
another, with the quoted basis spread on the spread leg. It pins the spread
index’s forward curve against the base index’s (an available peer forward); the
two indices must resolve to distinct forward-curve keys. It carries no quote — the
basis spread fills a recipe pillar hole — only the two legs’ conventions.
Fields§
§name: StringTemplate name (doubles as the registry code).
spread: TenorBasisLegThe spread (pinned) leg — the index whose forward curve is solved.
base: TenorBasisLegThe base (peer) leg — the index whose forward curve must be available.
Trait Implementations§
§impl Clone for TenorBasisTemplate
impl Clone for TenorBasisTemplate
§fn clone(&self) -> TenorBasisTemplate
fn clone(&self) -> TenorBasisTemplate
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 From<TenorBasisTemplate> for AnyTemplate
impl From<TenorBasisTemplate> for AnyTemplate
§fn from(t: TenorBasisTemplate) -> Self
fn from(t: TenorBasisTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TenorBasisTemplate
impl !UnwindSafe for TenorBasisTemplate
impl Freeze for TenorBasisTemplate
impl Send for TenorBasisTemplate
impl Sync for TenorBasisTemplate
impl Unpin for TenorBasisTemplate
impl UnsafeUnpin for TenorBasisTemplate
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