Enum NonDeliverableError
#[non_exhaustive]pub enum NonDeliverableError {
SameCurrency {
currency: Currency,
},
OutsidePair {
fx_index: FixingSource,
currency: Currency,
settlement: Currency,
},
CountMismatch {
payments: usize,
fixings: usize,
},
FixingAfterPayment {
payment: usize,
fixing_date: NaiveDate,
payment_date: NaiveDate,
},
ValueBeforeFixing {
payment: usize,
fixing_date: NaiveDate,
value_date: NaiveDate,
},
NonPositiveAgreedRate {
payment: usize,
rate: f64,
},
UnconvertedExchange,
}Expand description
Why a leg could not be made non-deliverable.
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.
SameCurrency
The settlement currency is the currency the leg accrues in.
OutsidePair
The FX fixing is not between the leg’s and the settlement currency.
Fields
§
fx_index: FixingSourceThe fixing named.
CountMismatch
The conversions do not number the leg’s payments.
FixingAfterPayment
A payment’s fixing is after the payment itself.
Fields
ValueBeforeFixing
A payment’s fixing is for a value date before the fixing itself.
Fields
NonPositiveAgreedRate
A payment’s agreed rate is not a positive number.
UnconvertedExchange
A principal exchange was added to a leg that already settles non-deliverably, so the new payment has no conversion.
Trait Implementations§
§impl Clone for NonDeliverableError
impl Clone for NonDeliverableError
§fn clone(&self) -> NonDeliverableError
fn clone(&self) -> NonDeliverableError
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 NonDeliverableError
impl Debug for NonDeliverableError
§impl Display for NonDeliverableError
impl Display for NonDeliverableError
§impl Error for NonDeliverableError
impl Error for NonDeliverableError
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 PartialEq for NonDeliverableError
impl PartialEq for NonDeliverableError
§fn eq(&self, other: &NonDeliverableError) -> bool
fn eq(&self, other: &NonDeliverableError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonDeliverableError
Auto Trait Implementations§
impl Freeze for NonDeliverableError
impl RefUnwindSafe for NonDeliverableError
impl Send for NonDeliverableError
impl Sync for NonDeliverableError
impl Unpin for NonDeliverableError
impl UnsafeUnpin for NonDeliverableError
impl UnwindSafe for NonDeliverableError
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