Enum ProductFamily
#[non_exhaustive]pub enum ProductFamily {
VanillaSwap,
OvernightIndexedSwap,
CreditDefaultSwap,
}Expand description
Which product a builder is assembling.
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.
VanillaSwap
A fixed-versus-IBOR swap.
OvernightIndexedSwap
An overnight-indexed swap.
CreditDefaultSwap
A single-name credit default swap.
Implementations§
§impl ProductFamily
impl ProductFamily
pub fn default_collateral(self, currency: Currency) -> CollateralSpec
pub fn default_collateral(self, currency: Currency) -> CollateralSpec
The collateral a family defaults to when a trade names none.
Stated here rather than left implicit at each call site. A rate swap collateralises in its own currency; so, in this set, does a CDS.
Trait Implementations§
§impl Clone for ProductFamily
impl Clone for ProductFamily
§fn clone(&self) -> ProductFamily
fn clone(&self) -> ProductFamily
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 ProductFamily
§impl Debug for ProductFamily
impl Debug for ProductFamily
impl Eq for ProductFamily
§impl PartialEq for ProductFamily
impl PartialEq for ProductFamily
impl StructuralPartialEq for ProductFamily
Auto Trait Implementations§
impl Freeze for ProductFamily
impl RefUnwindSafe for ProductFamily
impl Send for ProductFamily
impl Sync for ProductFamily
impl Unpin for ProductFamily
impl UnsafeUnpin for ProductFamily
impl UnwindSafe for ProductFamily
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