pub struct FloatingRateNote {
pub proto: SecurityProto,
}Fields§
§proto: SecurityProtoImplementations§
Source§impl FloatingRateNote
impl FloatingRateNote
pub fn from_proto(proto: SecurityProto) -> Result<Self, Error>
pub fn spread(&self) -> Option<Decimal>
pub fn reference_rate_index(&self) -> IndexTypeProto
pub fn reset_frequency(&self) -> CouponFrequencyProto
pub fn from_pricer_inputs( face_value: Decimal, coupon_rate: Decimal, coupon_type: CouponTypeProto, coupon_frequency: CouponFrequencyProto, issue_date: NaiveDate, maturity_date: NaiveDate, spread: Decimal, reference_rate_index: IndexTypeProto, reset_frequency: CouponFrequencyProto, ) -> SecurityProto
Auto Trait Implementations§
impl Freeze for FloatingRateNote
impl RefUnwindSafe for FloatingRateNote
impl Send for FloatingRateNote
impl Sync for FloatingRateNote
impl Unpin for FloatingRateNote
impl UnsafeUnpin for FloatingRateNote
impl UnwindSafe for FloatingRateNote
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request