pub struct OperationItem {Show 30 fields
pub cursor: String,
pub broker_account_id: String,
pub id: String,
pub parent_operation_id: String,
pub name: String,
pub date: Option<Timestamp>,
pub type: i32,
pub description: String,
pub state: i32,
pub instrument_uid: String,
pub figi: String,
pub instrument_type: String,
pub instrument_kind: i32,
pub position_uid: String,
pub ticker: String,
pub class_code: String,
pub payment: Option<MoneyValue>,
pub price: Option<MoneyValue>,
pub commission: Option<MoneyValue>,
pub yield: Option<MoneyValue>,
pub yield_relative: Option<Quotation>,
pub accrued_int: Option<MoneyValue>,
pub quantity: i64,
pub quantity_rest: i64,
pub quantity_done: i64,
pub cancel_date_time: Option<Timestamp>,
pub cancel_reason: String,
pub trades_info: Option<OperationItemTrades>,
pub asset_uid: String,
pub child_operations: Vec<ChildOperationItem>,
}Expand description
Данные об операции.
Fields§
§cursor: StringКурсор.
broker_account_id: StringНомер счета клиента.
id: StringИдентификатор операции, может меняться с течением времени.
parent_operation_id: StringИдентификатор родительской операции. Может измениться, если изменился ID родительской операции.
name: StringНазвание операции.
date: Option<Timestamp>Дата поручения.
type: i32Тип операции.
description: StringОписание операции.
state: i32Статус поручения.
instrument_uid: StringУникальный идентификатор инструмента.
figi: StringFIGI.
instrument_type: StringТип инструмента.
instrument_kind: i32Тип инструмента.
position_uid: StringУникальный идентификатор позиции.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
payment: Option<MoneyValue>Сумма операции.
price: Option<MoneyValue>Цена операции за 1 инструмент.
commission: Option<MoneyValue>Комиссия.
yield: Option<MoneyValue>Доходность.
yield_relative: Option<Quotation>Относительная доходность.
accrued_int: Option<MoneyValue>Накопленный купонный доход.
quantity: i64Количество единиц инструмента.
quantity_rest: i64Неисполненный остаток по сделке.
quantity_done: i64Исполненный остаток.
cancel_date_time: Option<Timestamp>Дата и время снятия заявки.
cancel_reason: StringПричина отмены операции.
trades_info: Option<OperationItemTrades>Массив сделок.
asset_uid: StringИдентификатор актива.
child_operations: Vec<ChildOperationItem>Массив дочерних операций.
Implementations§
Source§impl OperationItem
impl OperationItem
Sourcepub fn type(&self) -> OperationType
pub fn type(&self) -> OperationType
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: OperationType)
pub fn set_type(&mut self, value: OperationType)
Sets type to the provided enum value.
Sourcepub fn state(&self) -> OperationState
pub fn state(&self) -> OperationState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: OperationState)
pub fn set_state(&mut self, value: OperationState)
Sets state to the provided enum value.
Sourcepub fn instrument_kind(&self) -> InstrumentType
pub fn instrument_kind(&self) -> InstrumentType
Returns the enum value of instrument_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_instrument_kind(&mut self, value: InstrumentType)
pub fn set_instrument_kind(&mut self, value: InstrumentType)
Sets instrument_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for OperationItem
impl Clone for OperationItem
Source§fn clone(&self) -> OperationItem
fn clone(&self) -> OperationItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OperationItem
impl Debug for OperationItem
Source§impl Default for OperationItem
impl Default for OperationItem
Source§impl Message for OperationItem
impl Message for OperationItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for OperationItem
impl PartialEq for OperationItem
Source§fn eq(&self, other: &OperationItem) -> bool
fn eq(&self, other: &OperationItem) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationItem
Auto Trait Implementations§
impl Freeze for OperationItem
impl RefUnwindSafe for OperationItem
impl Send for OperationItem
impl Sync for OperationItem
impl Unpin for OperationItem
impl UnsafeUnpin for OperationItem
impl UnwindSafe for OperationItem
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].