pub struct ArbitrageCheck {
pub policy: ArbitragePolicy,
pub forward_floor: f64,
}Expand description
The no-arbitrage guard applied to every bumped curve of every scenario.
[arbitrage]
policy = "reject" # allow | warn (default) | reject
forward_floor = 0.0 # smallest admissible continuous forwardFields§
§policy: ArbitragePolicy§forward_floor: f64Smallest admissible continuously compounded forward. 0.0 is the
classic no-arbitrage bound; set it negative to tolerate negative
forwards (the library allows negative rates).
Trait Implementations§
Source§impl Clone for ArbitrageCheck
impl Clone for ArbitrageCheck
Source§fn clone(&self) -> ArbitrageCheck
fn clone(&self) -> ArbitrageCheck
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 ArbitrageCheck
Source§impl Debug for ArbitrageCheck
impl Debug for ArbitrageCheck
Source§impl Default for ArbitrageCheck
impl Default for ArbitrageCheck
Source§impl<'de> Deserialize<'de> for ArbitrageCheckwhere
ArbitrageCheck: Default,
impl<'de> Deserialize<'de> for ArbitrageCheckwhere
ArbitrageCheck: Default,
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
Auto Trait Implementations§
impl Freeze for ArbitrageCheck
impl RefUnwindSafe for ArbitrageCheck
impl Send for ArbitrageCheck
impl Sync for ArbitrageCheck
impl Unpin for ArbitrageCheck
impl UnsafeUnpin for ArbitrageCheck
impl UnwindSafe for ArbitrageCheck
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