FloatingRateNoteBuilder

Struct FloatingRateNoteBuilder 

Source
pub struct FloatingRateNoteBuilder { /* private fields */ }
Expand description

Builder for FloatingRateNote.

Implementations§

Source§

impl FloatingRateNoteBuilder

Source

pub fn new() -> Self

Creates a new builder.

Source

pub fn identifiers(self, ids: BondIdentifiers) -> Self

Sets the bond identifiers.

Source

pub fn cusip(self, cusip: &str) -> Result<Self, IdentifierError>

Sets the CUSIP identifier with validation.

Source

pub fn cusip_unchecked(self, cusip: &str) -> Self

Sets the CUSIP identifier without validation.

Source

pub fn isin_unchecked(self, isin: &str) -> Self

Sets the ISIN identifier.

Source

pub fn index(self, index: RateIndex) -> Self

Sets the reference rate index.

Source

pub fn sofr_convention(self, convention: SOFRConvention) -> Self

Sets the SOFR compounding convention.

Source

pub fn spread_bps(self, bps: i32) -> Self

Sets the spread in basis points.

Source

pub fn spread_decimal(self, spread: Decimal) -> Self

Sets the spread as a decimal.

Source

pub fn maturity(self, date: Date) -> Self

Sets the maturity date.

Source

pub fn issue_date(self, date: Date) -> Self

Sets the issue date.

Source

pub fn frequency(self, freq: Frequency) -> Self

Sets the payment frequency.

Source

pub fn day_count(self, dc: DayCountConvention) -> Self

Sets the day count convention.

Source

pub fn reset_lag(self, days: i32) -> Self

Sets the reset lag in business days.

Source

pub fn payment_delay(self, days: u32) -> Self

Sets the payment delay in business days.

Source

pub fn cap(self, rate: Decimal) -> Self

Sets the rate cap.

Source

pub fn floor(self, rate: Decimal) -> Self

Sets the rate floor.

Source

pub fn settlement_days(self, days: u32) -> Self

Sets the settlement days.

Source

pub fn calendar(self, calendar: CalendarId) -> Self

Sets the calendar.

Source

pub fn currency(self, currency: Currency) -> Self

Sets the currency.

Source

pub fn face_value(self, value: Decimal) -> Self

Sets the face value.

Source

pub fn us_treasury_frn(self) -> Self

Applies US Treasury FRN conventions.

  • Index: SOFR
  • Convention: Simple average with 2-day lookback
  • Day count: ACT/360
  • Frequency: Quarterly
  • Settlement: T+1
Source

pub fn corporate_sofr(self) -> Self

Applies corporate SOFR FRN conventions.

  • Index: SOFR
  • Convention: Compounded in arrears with 5-day lookback
  • Day count: ACT/360
  • Frequency: Quarterly
  • Settlement: T+2
Source

pub fn uk_sonia_frn(self) -> Self

Applies UK SONIA FRN conventions.

  • Index: SONIA
  • Day count: ACT/365F
  • Frequency: Quarterly
  • Settlement: T+1
Source

pub fn estr_frn(self) -> Self

Applies €STR FRN conventions.

  • Index: €STR
  • Day count: ACT/360
  • Frequency: Quarterly
  • Settlement: T+2
Source

pub fn euribor_frn(self, tenor: Tenor) -> Self

Applies EURIBOR FRN conventions.

  • Day count: ACT/360
  • Frequency: Based on tenor (monthly for 1M, quarterly for 3M, semi-annual for 6M, annual for 12M)
  • Settlement: T+2
Source

pub fn build(self) -> BondResult<FloatingRateNote>

Builds the FloatingRateNote.

Trait Implementations§

Source§

impl Clone for FloatingRateNoteBuilder

Source§

fn clone(&self) -> FloatingRateNoteBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FloatingRateNoteBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FloatingRateNoteBuilder

Source§

fn default() -> FloatingRateNoteBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.