Enum Conversion
pub enum Conversion {
Fixing {
fixing: NaiveDate,
value: NaiveDate,
},
Agreed(f64),
}Expand description
How one payment of a non-deliverable leg converts into the settlement currency: at an FX fixing on a date, or at a rate agreed at trade.
Variants§
Fixing
At the FX fixing printed on fixing — FpML’s fxFixingDate for this
payment. Until it prints, at the parity forward for value, the
fixing’s value date, which need not be the payment date (EMTA-ISDA MP8
fixes a cross-currency coupon before its period end and pays after).
Fields
Agreed(f64)
At a rate written into the trade, in reference units per one settlement unit (KRW per USD) whichever way the fixing series is keyed — the deal rate of an initial exchange. Known at trade, so it carries no FX risk and needs no fixing.
Implementations§
§impl Conversion
impl Conversion
pub fn fixing_date(&self) -> Option<NaiveDate>
pub fn fixing_date(&self) -> Option<NaiveDate>
The fixing date, or None for an agreed rate.
Trait Implementations§
§impl Clone for Conversion
impl Clone for Conversion
§fn clone(&self) -> Conversion
fn clone(&self) -> Conversion
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 moreimpl Copy for Conversion
§impl Debug for Conversion
impl Debug for Conversion
§impl PartialEq for Conversion
impl PartialEq for Conversion
impl StructuralPartialEq for Conversion
Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl Send for Conversion
impl Sync for Conversion
impl Unpin for Conversion
impl UnsafeUnpin for Conversion
impl UnwindSafe for Conversion
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