Struct TrsTemplate
pub struct TrsTemplate {
pub name: String,
pub funding_shape: TrsFundingShape,
pub funding_currency: String,
pub funding_index: Option<String>,
pub funding_day_count: DayCountFraction,
pub reset_frequency: Frequency,
}Expand description
The conventions of a bond total return swap template. Carries the funding
shape, funding currency (default USD), optional projection index, reset
frequency, and funding day-count; the reference bond and agreed spread are
supplied when the trade is built (with_underlying / with_funding_spread).
Fields§
§name: StringTemplate name (doubles as the registry code).
funding_shape: TrsFundingShapeFunding-leg shape (float vs fixed).
funding_currency: StringFunding-leg currency (default "USD").
funding_index: Option<String>Funding-leg projection index name; None ⇒ single-curve funding.
funding_day_count: DayCountFractionFunding-leg accrual day-count.
reset_frequency: FrequencyReset (and funding-coupon) frequency.
Trait Implementations§
§impl Clone for TrsTemplate
impl Clone for TrsTemplate
§fn clone(&self) -> TrsTemplate
fn clone(&self) -> TrsTemplate
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<TrsTemplate> for AnyTemplate
impl From<TrsTemplate> for AnyTemplate
§fn from(t: TrsTemplate) -> Self
fn from(t: TrsTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrsTemplate
impl RefUnwindSafe for TrsTemplate
impl Send for TrsTemplate
impl Sync for TrsTemplate
impl Unpin for TrsTemplate
impl UnsafeUnpin for TrsTemplate
impl UnwindSafe for TrsTemplate
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