Skip to main content

RepoDraft

Struct RepoDraft 

pub(crate) struct RepoDraft<'a> {
Show 16 fields pub(crate) start: NaiveDate, pub(crate) side: &'a str, pub(crate) collateral: &'a PyFixedRateBond, pub(crate) price: f64, pub(crate) rate: Option<f64>, pub(crate) spread: Option<f64>, pub(crate) nominal: Option<f64>, pub(crate) cash: Option<f64>, pub(crate) margin_ratio: f64, pub(crate) coupons: &'a str, pub(crate) repo_key: Option<&'a str>, pub(crate) isin: Option<&'a str>, pub(crate) repo_group: Option<&'a str>, pub(crate) margin_basis: Option<&'a str>, pub(crate) interest_dates: Option<Vec<NaiveDate>>, pub(crate) fx_rate: Option<f64>,
}
Expand description

What a repo draft states beyond its template and far date.

Fields§

§start: NaiveDate§side: &'a str§collateral: &'a PyFixedRateBond§price: f64§rate: Option<f64>§spread: Option<f64>§nominal: Option<f64>§cash: Option<f64>§margin_ratio: f64§coupons: &'a str§repo_key: Option<&'a str>§isin: Option<&'a str>§repo_group: Option<&'a str>§margin_basis: Option<&'a str>§interest_dates: Option<Vec<NaiveDate>>§fx_rate: Option<f64>

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for RepoDraft<'a>

§

impl<'a> !UnwindSafe for RepoDraft<'a>

§

impl<'a> Freeze for RepoDraft<'a>

§

impl<'a> Send for RepoDraft<'a>

§

impl<'a> Sync for RepoDraft<'a>

§

impl<'a> Unpin for RepoDraft<'a>

§

impl<'a> UnsafeUnpin for RepoDraft<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,