Enum SwaptionKind
pub enum SwaptionKind {
Payer,
Receiver,
}Expand description
Whether a swaption holder pays (payer) or receives (receiver) the fixed leg on exercise. A payer is a call on the forward swap rate; a receiver a put.
Filed here for the same reason as AccrualCompounding: it classifies a
contract convention and is named by swaption templates, so keeping it with
the instrument would invert the layering.
Variants§
Payer
Right to enter paying fixed (a call on the swap rate).
Receiver
Right to enter receiving fixed (a put on the swap rate).
Implementations§
§impl SwaptionKind
impl SwaptionKind
Trait Implementations§
§impl Clone for SwaptionKind
impl Clone for SwaptionKind
§fn clone(&self) -> SwaptionKind
fn clone(&self) -> SwaptionKind
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 SwaptionKind
§impl Debug for SwaptionKind
impl Debug for SwaptionKind
impl Eq for SwaptionKind
§impl FromStr for SwaptionKind
impl FromStr for SwaptionKind
§impl PartialEq for SwaptionKind
impl PartialEq for SwaptionKind
impl StructuralPartialEq for SwaptionKind
Auto Trait Implementations§
impl Freeze for SwaptionKind
impl RefUnwindSafe for SwaptionKind
impl Send for SwaptionKind
impl Sync for SwaptionKind
impl Unpin for SwaptionKind
impl UnsafeUnpin for SwaptionKind
impl UnwindSafe for SwaptionKind
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