pub struct SecurityProto {Show 23 fields
pub object_class: String,
pub version: String,
pub uuid: Option<UuidProto>,
pub as_of: Option<LocalTimestampProto>,
pub is_link: bool,
pub valid_from: Option<LocalTimestampProto>,
pub valid_to: Option<LocalTimestampProto>,
pub security_type: i32,
pub asset_class: String,
pub issuer_name: String,
pub settlement_currency: Option<Box<SecurityProto>>,
pub quantity_type: i32,
pub identifier: Option<IdentifierProto>,
pub description: String,
pub cash_id: String,
pub coupon_rate: Option<DecimalValueProto>,
pub coupon_type: i32,
pub coupon_frequency: i32,
pub dated_date: Option<LocalDateProto>,
pub face_value: Option<DecimalValueProto>,
pub issue_date: Option<LocalDateProto>,
pub maturity_date: Option<LocalDateProto>,
pub issuance_info: Vec<IssuanceProto>,
}Fields§
§object_class: String§version: String§uuid: Option<UuidProto>Primary Key
as_of: Option<LocalTimestampProto>§is_link: bool§valid_from: Option<LocalTimestampProto>§valid_to: Option<LocalTimestampProto>§security_type: i32§asset_class: StringBiz fields
issuer_name: String§settlement_currency: Option<Box<SecurityProto>>§quantity_type: i32§identifier: Option<IdentifierProto>§description: String§cash_id: StringCash Security fields
coupon_rate: Option<DecimalValueProto>Bond Security fields
coupon_type: i32§coupon_frequency: i32§dated_date: Option<LocalDateProto>§face_value: Option<DecimalValueProto>§issue_date: Option<LocalDateProto>§maturity_date: Option<LocalDateProto>§issuance_info: Vec<IssuanceProto>Issuance can be repeated as there may be re-openings of bond auctions (e.g. in US treasuries)
Implementations§
Source§impl SecurityProto
impl SecurityProto
Sourcepub fn security_type(&self) -> SecurityTypeProto
pub fn security_type(&self) -> SecurityTypeProto
Returns the enum value of security_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_security_type(&mut self, value: SecurityTypeProto)
pub fn set_security_type(&mut self, value: SecurityTypeProto)
Sets security_type to the provided enum value.
Sourcepub fn quantity_type(&self) -> SecurityQuantityTypeProto
pub fn quantity_type(&self) -> SecurityQuantityTypeProto
Returns the enum value of quantity_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_quantity_type(&mut self, value: SecurityQuantityTypeProto)
pub fn set_quantity_type(&mut self, value: SecurityQuantityTypeProto)
Sets quantity_type to the provided enum value.
Sourcepub fn coupon_type(&self) -> CouponTypeProto
pub fn coupon_type(&self) -> CouponTypeProto
Returns the enum value of coupon_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_coupon_type(&mut self, value: CouponTypeProto)
pub fn set_coupon_type(&mut self, value: CouponTypeProto)
Sets coupon_type to the provided enum value.
Sourcepub fn coupon_frequency(&self) -> CouponFrequencyProto
pub fn coupon_frequency(&self) -> CouponFrequencyProto
Returns the enum value of coupon_frequency, or the default if the field is set to an invalid enum value.
Sourcepub fn set_coupon_frequency(&mut self, value: CouponFrequencyProto)
pub fn set_coupon_frequency(&mut self, value: CouponFrequencyProto)
Sets coupon_frequency to the provided enum value.
Trait Implementations§
Source§impl Clone for SecurityProto
impl Clone for SecurityProto
Source§fn clone(&self) -> SecurityProto
fn clone(&self) -> SecurityProto
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 SecurityProto
impl Debug for SecurityProto
Source§impl Default for SecurityProto
impl Default for SecurityProto
Source§impl Message for SecurityProto
impl Message for SecurityProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SecurityProto
impl PartialEq for SecurityProto
impl StructuralPartialEq for SecurityProto
Auto Trait Implementations§
impl Freeze for SecurityProto
impl RefUnwindSafe for SecurityProto
impl Send for SecurityProto
impl Sync for SecurityProto
impl Unpin for SecurityProto
impl UnwindSafe for SecurityProto
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<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