pub enum ArbitragePolicy {
Allow,
Warn,
Reject,
}Expand description
What to do when a bumped scenario curve implies a forward rate below
the configured floor (see
min_forward).
Variants§
Allow
Accept the curve silently.
Warn
Log a warning and revalue anyway — the default: stress scenarios are deliberately extreme, and the P&L number is usually still wanted.
Reject
Fail the run, naming the scenario, curve and offending segment.
Trait Implementations§
Source§impl Clone for ArbitragePolicy
impl Clone for ArbitragePolicy
Source§fn clone(&self) -> ArbitragePolicy
fn clone(&self) -> ArbitragePolicy
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 ArbitragePolicy
Source§impl Debug for ArbitragePolicy
impl Debug for ArbitragePolicy
Source§impl Default for ArbitragePolicy
impl Default for ArbitragePolicy
Source§fn default() -> ArbitragePolicy
fn default() -> ArbitragePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArbitragePolicy
impl<'de> Deserialize<'de> for ArbitragePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArbitragePolicy
Source§impl PartialEq for ArbitragePolicy
impl PartialEq for ArbitragePolicy
impl StructuralPartialEq for ArbitragePolicy
Auto Trait Implementations§
impl Freeze for ArbitragePolicy
impl RefUnwindSafe for ArbitragePolicy
impl Send for ArbitragePolicy
impl Sync for ArbitragePolicy
impl Unpin for ArbitragePolicy
impl UnsafeUnpin for ArbitragePolicy
impl UnwindSafe for ArbitragePolicy
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