Enum tinkoff_invest_types::OperationType

source ·
#[repr(i32)]
pub enum OperationType {
Show 62 variants Unspecified = 0, Input = 1, BondTax = 2, OutputSecurities = 3, Overnight = 4, Tax = 5, BondRepaymentFull = 6, SellCard = 7, DividendTax = 8, Output = 9, BondRepayment = 10, TaxCorrection = 11, ServiceFee = 12, BenefitTax = 13, MarginFee = 14, Buy = 15, BuyCard = 16, InputSecurities = 17, SellMargin = 18, BrokerFee = 19, BuyMargin = 20, Dividend = 21, Sell = 22, Coupon = 23, SuccessFee = 24, DividendTransfer = 25, AccruingVarmargin = 26, WritingOffVarmargin = 27, DeliveryBuy = 28, DeliverySell = 29, TrackMfee = 30, TrackPfee = 31, TaxProgressive = 32, BondTaxProgressive = 33, DividendTaxProgressive = 34, BenefitTaxProgressive = 35, TaxCorrectionProgressive = 36, TaxRepoProgressive = 37, TaxRepo = 38, TaxRepoHold = 39, TaxRepoRefund = 40, TaxRepoHoldProgressive = 41, TaxRepoRefundProgressive = 42, DivExt = 43, TaxCorrectionCoupon = 44, CashFee = 45, OutFee = 46, OutStampDuty = 47, OutputSwift = 50, InputSwift = 51, OutputAcquiring = 53, InputAcquiring = 54, OutputPenalty = 55, AdviceFee = 56, TransIisBs = 57, TransBsBs = 58, OutMulti = 59, InpMulti = 60, OverPlacement = 61, OverCom = 62, OverIncome = 63, OptionExpiration = 64,
}
Expand description

Тип операции.

Variants§

§

Unspecified = 0

Тип операции не определён.

§

Input = 1

Пополнение брокерского счёта.

§

BondTax = 2

Удержание НДФЛ по купонам.

§

OutputSecurities = 3

Вывод ЦБ.

§

Overnight = 4

Доход по сделке РЕПО овернайт.

§

Tax = 5

Удержание налога.

§

BondRepaymentFull = 6

Полное погашение облигаций.

§

SellCard = 7

Продажа ЦБ с карты.

§

DividendTax = 8

Удержание налога по дивидендам.

§

Output = 9

Вывод денежных средств.

§

BondRepayment = 10

Частичное погашение облигаций.

§

TaxCorrection = 11

Корректировка налога.

§

ServiceFee = 12

Удержание комиссии за обслуживание брокерского счёта.

§

BenefitTax = 13

Удержание налога за материальную выгоду.

§

MarginFee = 14

Удержание комиссии за непокрытую позицию.

§

Buy = 15

Покупка ЦБ.

§

BuyCard = 16

Покупка ЦБ с карты.

§

InputSecurities = 17

Перевод ценных бумаг из другого депозитария.

§

SellMargin = 18

Продажа в результате Margin-call.

§

BrokerFee = 19

Удержание комиссии за операцию.

§

BuyMargin = 20

Покупка в результате Margin-call.

§

Dividend = 21

Выплата дивидендов.

§

Sell = 22

Продажа ЦБ.

§

Coupon = 23

Выплата купонов.

§

SuccessFee = 24

Удержание комиссии SuccessFee.

§

DividendTransfer = 25

Передача дивидендного дохода.

§

AccruingVarmargin = 26

Зачисление вариационной маржи.

§

WritingOffVarmargin = 27

Списание вариационной маржи.

§

DeliveryBuy = 28

Покупка в рамках экспирации фьючерсного контракта.

§

DeliverySell = 29

Продажа в рамках экспирации фьючерсного контракта.

§

TrackMfee = 30

Комиссия за управление по счёту автоследования.

§

TrackPfee = 31

Комиссия за результат по счёту автоследования.

§

TaxProgressive = 32

Удержание налога по ставке 15%.

§

BondTaxProgressive = 33

Удержание налога по купонам по ставке 15%.

§

DividendTaxProgressive = 34

Удержание налога по дивидендам по ставке 15%.

§

BenefitTaxProgressive = 35

Удержание налога за материальную выгоду по ставке 15%.

§

TaxCorrectionProgressive = 36

Корректировка налога по ставке 15%.

§

TaxRepoProgressive = 37

Удержание налога за возмещение по сделкам РЕПО по ставке 15%.

§

TaxRepo = 38

Удержание налога за возмещение по сделкам РЕПО.

§

TaxRepoHold = 39

Удержание налога по сделкам РЕПО.

§

TaxRepoRefund = 40

Возврат налога по сделкам РЕПО.

§

TaxRepoHoldProgressive = 41

Удержание налога по сделкам РЕПО по ставке 15%.

§

TaxRepoRefundProgressive = 42

Возврат налога по сделкам РЕПО по ставке 15%.

§

DivExt = 43

Выплата дивидендов на карту.

§

TaxCorrectionCoupon = 44

Корректировка налога по купонам.

§

CashFee = 45

Комиссия за валютный остаток.

§

OutFee = 46

Комиссия за вывод валюты с брокерского счета.

§

OutStampDuty = 47

Гербовый сбор.

§

OutputSwift = 50

SWIFT-перевод

§

InputSwift = 51

SWIFT-перевод

§

OutputAcquiring = 53

Перевод на карту

§

InputAcquiring = 54

Перевод с карты

§

OutputPenalty = 55

Комиссия за вывод средств

§

AdviceFee = 56

Списание оплаты за сервис Советов

§

TransIisBs = 57

Перевод ценных бумаг с ИИС на Брокерский счет

§

TransBsBs = 58

Перевод ценных бумаг с одного брокерского счета на другой

§

OutMulti = 59

Вывод денежных средств со счета

§

InpMulti = 60

Пополнение денежных средств со счета

§

OverPlacement = 61

Размещение биржевого овернайта

§

OverCom = 62

Списание комиссии

§

OverIncome = 63

Доход от оверанайта

§

OptionExpiration = 64

Экспирация

Implementations§

source§

impl OperationType

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of OperationType.

source

pub fn from_i32(value: i32) -> Option<OperationType>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a OperationType, or None if value is not a valid variant.

source§

impl OperationType

source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

source§

impl Clone for OperationType

source§

fn clone(&self) -> OperationType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OperationType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for OperationType

source§

fn default() -> OperationType

Returns the “default value” for a type. Read more
source§

impl From<OperationType> for i32

source§

fn from(value: OperationType) -> i32

Converts to this type from the input type.
source§

impl Hash for OperationType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for OperationType

source§

fn cmp(&self, other: &OperationType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for OperationType

source§

fn eq(&self, other: &OperationType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for OperationType

source§

fn partial_cmp(&self, other: &OperationType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for OperationType

§

type Error = DecodeError

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<OperationType, DecodeError>

Performs the conversion.
source§

impl Copy for OperationType

source§

impl Eq for OperationType

source§

impl StructuralPartialEq for OperationType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more