Struct CrossCurrencyTerms
pub struct CrossCurrencyTerms {
pub float_currency: Currency,
pub fx_rate: f64,
pub float_discount: CollateralSpec,
pub bond_discount: CollateralSpec,
}Expand description
What a cross-currency note’s swap adds to its package: the notes’ currency, the contract rate it was struck at (note units per collateral unit), and the keys each side discounts on.
Fields§
§float_currency: CurrencyThe notes’ and the floating leg’s currency.
fx_rate: f64Note units per collateral unit.
float_discount: CollateralSpecThe notes’ currency’s own discount key.
bond_discount: CollateralSpecThe collateral’s currency under the notes’ currency’s CSA.
Trait Implementations§
§impl Clone for CrossCurrencyTerms
impl Clone for CrossCurrencyTerms
§fn clone(&self) -> CrossCurrencyTerms
fn clone(&self) -> CrossCurrencyTerms
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 Debug for CrossCurrencyTerms
impl Debug for CrossCurrencyTerms
§impl PartialEq for CrossCurrencyTerms
impl PartialEq for CrossCurrencyTerms
§fn eq(&self, other: &CrossCurrencyTerms) -> bool
fn eq(&self, other: &CrossCurrencyTerms) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrossCurrencyTerms
Auto Trait Implementations§
impl Freeze for CrossCurrencyTerms
impl RefUnwindSafe for CrossCurrencyTerms
impl Send for CrossCurrencyTerms
impl Sync for CrossCurrencyTerms
impl Unpin for CrossCurrencyTerms
impl UnsafeUnpin for CrossCurrencyTerms
impl UnwindSafe for CrossCurrencyTerms
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