Enum PySettlementIndex
pub(crate) enum PySettlementIndex {
Name(String),
Index(PyIndex),
Cross((String, String)),
}Expand description
The settlement index of a non-deliverable forward or option as Python
spells it: an FX key as a string, an Index value, which settles under the
name its fixings are published under, or a (reference_key, settlement_key) tuple for a cross of two keys through USD.
Variants§
Implementations§
§impl PySettlementIndex
impl PySettlementIndex
fn source(self) -> PyResult<FixingSource>
fn source(self) -> PyResult<FixingSource>
The fixing source the instrument reads its settlement rate from.
Trait Implementations§
§impl From<&str> for PySettlementIndex
impl From<&str> for PySettlementIndex
§impl<'py> FromPyObject<'py> for PySettlementIndex
impl<'py> FromPyObject<'py> for PySettlementIndex
§fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl !RefUnwindSafe for PySettlementIndex
impl !UnwindSafe for PySettlementIndex
impl Freeze for PySettlementIndex
impl Send for PySettlementIndex
impl Sync for PySettlementIndex
impl Unpin for PySettlementIndex
impl UnsafeUnpin for PySettlementIndex
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