Enum StructuredNoteError
#[non_exhaustive]pub enum StructuredNoteError {
EmptyLeg,
PaidLeg,
AccumulatingLeg,
NonPositiveFace(f64),
}Expand description
Why a structured note could not be built.
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.
EmptyLeg
The leg holds no coupon.
PaidLeg
The leg is paid; a note’s holder receives its coupons.
AccumulatingLeg
The leg accumulates into one payment rather than paying per coupon.
NonPositiveFace(f64)
The face is not a finite positive amount.
Trait Implementations§
§impl Clone for StructuredNoteError
impl Clone for StructuredNoteError
§fn clone(&self) -> StructuredNoteError
fn clone(&self) -> StructuredNoteError
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 StructuredNoteError
impl Debug for StructuredNoteError
§impl Display for StructuredNoteError
impl Display for StructuredNoteError
§impl Error for StructuredNoteError
impl Error for StructuredNoteError
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 StructuredNoteError
impl PartialEq for StructuredNoteError
§fn eq(&self, other: &StructuredNoteError) -> bool
fn eq(&self, other: &StructuredNoteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructuredNoteError
Auto Trait Implementations§
impl Freeze for StructuredNoteError
impl RefUnwindSafe for StructuredNoteError
impl Send for StructuredNoteError
impl Sync for StructuredNoteError
impl Unpin for StructuredNoteError
impl UnsafeUnpin for StructuredNoteError
impl UnwindSafe for StructuredNoteError
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