pub struct CreateSecurityRequestProto {
pub object_class: String,
pub version: String,
pub security_input: Option<SecurityProto>,
}Expand description
Use this request to create or update securities. Uniqueness is guaranteed via the UUID. Security identifiers do not guarantee uniqueness. As an example a bond ISIN or stock ticker may be re-used over time. Therefore if you send 2 requests with the same security identifier you will create two securities. In order to avoid duplication you should either re-use the UUID when calling the API, in which case an update will be applied. If you do not know the UUID, you should first do a search operation.
It is preferred that the client generates the UUID. This will avoid issues in the network leading to duplicate securities.
Fields§
§object_class: String§version: String§security_input: Option<SecurityProto>A fully formed security object to be created or updated. Validations may be applied before creating. For example creating an equity security with bond fields may be invalid and therefore rejected.
Trait Implementations§
Source§impl Clone for CreateSecurityRequestProto
impl Clone for CreateSecurityRequestProto
Source§fn clone(&self) -> CreateSecurityRequestProto
fn clone(&self) -> CreateSecurityRequestProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateSecurityRequestProto
impl Debug for CreateSecurityRequestProto
Source§impl Default for CreateSecurityRequestProto
impl Default for CreateSecurityRequestProto
Source§impl Message for CreateSecurityRequestProto
impl Message for CreateSecurityRequestProto
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 CreateSecurityRequestProto
Auto Trait Implementations§
impl Freeze for CreateSecurityRequestProto
impl RefUnwindSafe for CreateSecurityRequestProto
impl Send for CreateSecurityRequestProto
impl Sync for CreateSecurityRequestProto
impl Unpin for CreateSecurityRequestProto
impl UnwindSafe for CreateSecurityRequestProto
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