Enum FxSource
pub enum FxSource {
Ndf(&'static str),
Terms {
rate_option: &'static str,
settlement: &'static str,
centers: &'static str,
lag: u32,
},
}Expand description
Where a non-deliverable row’s FX fixing comes from — an NDS’s or an NDCCS’s.
Variants§
Ndf(&'static str)
The EMTA NDF template of the currency ("KRW-USD-NDF"): its rate
option, settlement currency, valuation calendar and fixing lag.
Terms
Terms stated in the row, for a currency without an EMTA NDF template.
Implementations§
§impl FxSource
impl FxSource
pub fn terms(&self) -> NdsFxTerms
pub fn terms(&self) -> NdsFxTerms
The FX terms this source names: its NDF template’s, or those stated.
§Panics
If an Ndf source names no registered NDF template, or a stated
settlement currency is no ISO code — wiring errors the registry tests
catch.
Trait Implementations§
impl Eq for FxSource
impl StructuralPartialEq for FxSource
Auto Trait Implementations§
impl Freeze for FxSource
impl RefUnwindSafe for FxSource
impl Send for FxSource
impl Sync for FxSource
impl Unpin for FxSource
impl UnsafeUnpin for FxSource
impl UnwindSafe for FxSource
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