pub struct CreateSecurityRequestProto {
pub object_type: i32,
pub version: Option<VersionProto>,
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_type: i32§version: Option<VersionProto>§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.
Implementations§
Source§impl CreateSecurityRequestProto
impl CreateSecurityRequestProto
Sourcepub fn object_type(&self) -> ObjectTypeProto
pub fn object_type(&self) -> ObjectTypeProto
Returns the enum value of object_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_object_type(&mut self, value: ObjectTypeProto)
pub fn set_object_type(&mut self, value: ObjectTypeProto)
Sets object_type to the provided enum value.
Trait Implementations§
Source§impl Clone for CreateSecurityRequestProto
impl Clone for CreateSecurityRequestProto
Source§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.Source§impl ObjectTyped for CreateSecurityRequestProto
impl ObjectTyped for CreateSecurityRequestProto
Source§fn raw_object_type(&self) -> i32
fn raw_object_type(&self) -> i32
object_type number, which may be newer than this enum.fn version_proto(&self) -> Option<&VersionProto>
fn set_raw_object_type(&mut self, object_type: i32)
fn set_version_proto(&mut self, version: Option<VersionProto>)
Source§impl OwnObjectType for CreateSecurityRequestProto
impl OwnObjectType for CreateSecurityRequestProto
const OBJECT_TYPE: ObjectTypeProto = ObjectTypeProto::ObjectTypeCreateSecurityRequest
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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