pub struct SpotLadder {
pub symbol: String,
pub base_spot: f64,
pub base_mtm: f64,
pub points: Vec<LadderPoint>,
}Expand description
A spot ladder over one book: base MtM plus one LadderPoint per
requested move, in ascending move order.
Fields§
§symbol: StringThe book’s underlying symbol (EquityPortfolio books are single-underlying).
base_spot: f64Unbumped spot the moves are relative to.
base_mtm: f64Book MtM under the unbumped snapshot.
points: Vec<LadderPoint>Trait Implementations§
Source§impl Clone for SpotLadder
impl Clone for SpotLadder
Source§fn clone(&self) -> SpotLadder
fn clone(&self) -> SpotLadder
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 moreAuto Trait Implementations§
impl Freeze for SpotLadder
impl RefUnwindSafe for SpotLadder
impl Send for SpotLadder
impl Sync for SpotLadder
impl Unpin for SpotLadder
impl UnsafeUnpin for SpotLadder
impl UnwindSafe for SpotLadder
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