Struct FxSwapTemplate
pub struct FxSwapTemplate {
pub name: String,
pub foreign_ccy: String,
pub collateral_ccy: String,
pub calendar: Arc<dyn Calendar>,
pub business_day_convention: BusinessDayConvention,
}Expand description
The conventions of an FX-swap pillar used to calibrate a foreign currency’s discount curve under a collateral currency (cross-collateral / post-CSA discounting). It carries no quote — the forward-points quote fills a recipe pillar hole — only the currencies and the schedule conventions needed to turn a pillar tenor into a forward-settlement date.
Fields§
§name: StringTemplate name.
foreign_ccy: StringThe cashflow (foreign) currency whose discount curve is being calibrated.
collateral_ccy: StringThe collateral currency the discounting is measured against.
calendar: Arc<dyn Calendar>Calendar advancing the pillar tenor to its forward-settlement date.
business_day_convention: BusinessDayConventionBusiness-day convention applied to that advance.
Trait Implementations§
§impl Clone for FxSwapTemplate
impl Clone for FxSwapTemplate
§fn clone(&self) -> FxSwapTemplate
fn clone(&self) -> FxSwapTemplate
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<FxSwapTemplate> for AnyTemplate
impl From<FxSwapTemplate> for AnyTemplate
§fn from(t: FxSwapTemplate) -> Self
fn from(t: FxSwapTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FxSwapTemplate
impl !UnwindSafe for FxSwapTemplate
impl Freeze for FxSwapTemplate
impl Send for FxSwapTemplate
impl Sync for FxSwapTemplate
impl Unpin for FxSwapTemplate
impl UnsafeUnpin for FxSwapTemplate
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