pub struct FloatingRateNoteBuilder { /* private fields */ }Expand description
Builder for FloatingRateNote.
Implementations§
Source§impl FloatingRateNoteBuilder
impl FloatingRateNoteBuilder
Sourcepub fn identifiers(self, ids: BondIdentifiers) -> Self
pub fn identifiers(self, ids: BondIdentifiers) -> Self
Sets the bond identifiers.
Sourcepub fn cusip(self, cusip: &str) -> Result<Self, IdentifierError>
pub fn cusip(self, cusip: &str) -> Result<Self, IdentifierError>
Sets the CUSIP identifier with validation.
Sourcepub fn cusip_unchecked(self, cusip: &str) -> Self
pub fn cusip_unchecked(self, cusip: &str) -> Self
Sets the CUSIP identifier without validation.
Sourcepub fn isin_unchecked(self, isin: &str) -> Self
pub fn isin_unchecked(self, isin: &str) -> Self
Sets the ISIN identifier.
Sourcepub fn sofr_convention(self, convention: SOFRConvention) -> Self
pub fn sofr_convention(self, convention: SOFRConvention) -> Self
Sets the SOFR compounding convention.
Sourcepub fn spread_bps(self, bps: i32) -> Self
pub fn spread_bps(self, bps: i32) -> Self
Sets the spread in basis points.
Sourcepub fn spread_decimal(self, spread: Decimal) -> Self
pub fn spread_decimal(self, spread: Decimal) -> Self
Sets the spread as a decimal.
Sourcepub fn issue_date(self, date: Date) -> Self
pub fn issue_date(self, date: Date) -> Self
Sets the issue date.
Sourcepub fn day_count(self, dc: DayCountConvention) -> Self
pub fn day_count(self, dc: DayCountConvention) -> Self
Sets the day count convention.
Sourcepub fn payment_delay(self, days: u32) -> Self
pub fn payment_delay(self, days: u32) -> Self
Sets the payment delay in business days.
Sourcepub fn settlement_days(self, days: u32) -> Self
pub fn settlement_days(self, days: u32) -> Self
Sets the settlement days.
Sourcepub fn calendar(self, calendar: CalendarId) -> Self
pub fn calendar(self, calendar: CalendarId) -> Self
Sets the calendar.
Sourcepub fn face_value(self, value: Decimal) -> Self
pub fn face_value(self, value: Decimal) -> Self
Sets the face value.
Sourcepub fn us_treasury_frn(self) -> Self
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
Sourcepub fn corporate_sofr(self) -> Self
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
Sourcepub fn uk_sonia_frn(self) -> Self
pub fn uk_sonia_frn(self) -> Self
Applies UK SONIA FRN conventions.
- Index: SONIA
- Day count: ACT/365F
- Frequency: Quarterly
- Settlement: T+1
Sourcepub fn estr_frn(self) -> Self
pub fn estr_frn(self) -> Self
Applies €STR FRN conventions.
- Index: €STR
- Day count: ACT/360
- Frequency: Quarterly
- Settlement: T+2
Sourcepub fn euribor_frn(self, tenor: Tenor) -> Self
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
Sourcepub fn build(self) -> BondResult<FloatingRateNote>
pub fn build(self) -> BondResult<FloatingRateNote>
Builds the FloatingRateNote.
Trait Implementations§
Source§impl Clone for FloatingRateNoteBuilder
impl Clone for FloatingRateNoteBuilder
Source§fn clone(&self) -> FloatingRateNoteBuilder
fn clone(&self) -> FloatingRateNoteBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FloatingRateNoteBuilder
impl Debug for FloatingRateNoteBuilder
Source§impl Default for FloatingRateNoteBuilder
impl Default for FloatingRateNoteBuilder
Source§fn default() -> FloatingRateNoteBuilder
fn default() -> FloatingRateNoteBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FloatingRateNoteBuilder
impl RefUnwindSafe for FloatingRateNoteBuilder
impl Send for FloatingRateNoteBuilder
impl Sync for FloatingRateNoteBuilder
impl Unpin for FloatingRateNoteBuilder
impl UnwindSafe for FloatingRateNoteBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.