Struct tinkoff_invest_types::OperationItem
source · [−]pub struct OperationItem {Show 25 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 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>,
}
Expand description
Данные об операции.
Fields
cursor: String
Курсор.
broker_account_id: String
Номер счета клиента.
id: String
Номер поручения.
parent_operation_id: String
Номер родительского поручения.
name: String
Название операции.
date: Option<Timestamp>
Дата поручения.
type: i32
Тип операции.
description: String
Описание операции.
state: i32
Статус поручения.
instrument_uid: String
Уникальный идентификатор инструмента.
figi: String
Figi.
instrument_type: String
Тип инструмента.
instrument_kind: i32
Тип инструмента.
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>
Массив сделок.
Implementations
sourceimpl 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
sourceimpl Clone for OperationItem
impl Clone for OperationItem
sourcefn clone(&self) -> OperationItem
fn clone(&self) -> OperationItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OperationItem
impl Debug for OperationItem
sourceimpl Default for OperationItem
impl Default for OperationItem
sourceimpl Message for OperationItem
impl Message for OperationItem
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<OperationItem> for OperationItem
impl PartialEq<OperationItem> for OperationItem
sourcefn eq(&self, other: &OperationItem) -> bool
fn eq(&self, other: &OperationItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for OperationItem
Auto Trait Implementations
impl RefUnwindSafe for OperationItem
impl Send for OperationItem
impl Sync for OperationItem
impl Unpin for OperationItem
impl UnwindSafe for OperationItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more