pub struct TipsInput {
pub security: Option<SecurityProto>,
pub clean_price: Option<DecimalValueProto>,
pub current_cpi: Option<DecimalValueProto>,
}Expand description
═══════════════════════════════════════════════════════════════════════════ TipsInput — valuation request for a Treasury Inflation-Protected Security.
Static security details: shared bond fields (real coupon_rate, coupon_frequency, face_value, maturity_date) are read from security.bond_details. TIPS-specific extras (base_cpi, index_date, inflation_index_type) are read from security.tips_extension.
Settlement date is read from ValuationRequestProto.asof_datetime. ═══════════════════════════════════════════════════════════════════════════
Fields§
§security: Option<SecurityProto>The TIPS security. Must be ProductTypeProto.TIPS with bond_details populated (coupon_type FIXED, etc.) and tips_extension populated with base_cpi set to the reference CPI index value at issuance.
clean_price: Option<DecimalValueProto>Market clean price as a percentage of face value (e.g. 99.75 = 99.75% of par).
current_cpi: Option<DecimalValueProto>Current CPI index value (e.g. 310.326). Used to compute: index_ratio = current_cpi / base_cpi adjusted_principal = face_value * index_ratio The base CPI is read from security.tips_extension.base_cpi.
Trait Implementations§
Source§impl Message for TipsInput
impl Message for TipsInput
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.impl StructuralPartialEq for TipsInput
Auto Trait Implementations§
impl Freeze for TipsInput
impl RefUnwindSafe for TipsInput
impl Send for TipsInput
impl Sync for TipsInput
impl Unpin for TipsInput
impl UnsafeUnpin for TipsInput
impl UnwindSafe for TipsInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request