Enum FxError
#[non_exhaustive]pub enum FxError {
MixedPairs,
SameDirection,
NonAscendingDates {
near: NaiveDate,
far: NaiveDate,
},
MixedCollateral,
SettlementOutsidePair {
settle: Currency,
},
SourceOutsidePair {
source: FixingSource,
},
}Expand description
An FX instrument that cannot be built as specified.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MixedPairs
A swap’s two forwards are on different pairs.
SameDirection
A swap’s two forwards run in the same direction.
NonAscendingDates
A swap’s far value date is not after its near.
MixedCollateral
A swap’s two forwards discount under different collateral keys.
SettlementOutsidePair
A cash settlement currency that is neither currency of the pair.
SourceOutsidePair
A cross fixing that does not fix this pair’s quote per base, or a settlement other than the cross’s settlement currency.
Fields
§
source: FixingSourceThe fixing named.
Trait Implementations§
impl Eq for FxError
§impl Error for FxError
impl Error for FxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for FxError
Auto Trait Implementations§
impl Freeze for FxError
impl RefUnwindSafe for FxError
impl Send for FxError
impl Sync for FxError
impl Unpin for FxError
impl UnsafeUnpin for FxError
impl UnwindSafe for FxError
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