Struct tinkoff_invest_types::InstrumentShort
source · pub struct InstrumentShort {Show 16 fields
pub isin: String,
pub figi: String,
pub ticker: String,
pub class_code: String,
pub instrument_type: String,
pub name: String,
pub uid: String,
pub position_uid: String,
pub instrument_kind: i32,
pub api_trade_available_flag: bool,
pub for_iis_flag: bool,
pub first_1min_candle_date: Option<Timestamp>,
pub first_1day_candle_date: Option<Timestamp>,
pub for_qual_investor_flag: bool,
pub weekend_flag: bool,
pub blocked_tca_flag: bool,
}
Expand description
Краткая информация об инструменте.
Fields§
§isin: String
Isin инструмента.
figi: String
Figi инструмента.
ticker: String
Ticker инструмента.
class_code: String
ClassCode инструмента.
instrument_type: String
Тип инструмента.
name: String
Название инструмента.
uid: String
Уникальный идентификатор инструмента.
position_uid: String
Уникальный идентификатор позиции инструмента.
instrument_kind: i32
Тип инструмента.
api_trade_available_flag: bool
Параметр указывает на возможность торговать инструментом через API.
for_iis_flag: bool
Признак доступности для ИИС.
first_1min_candle_date: Option<Timestamp>
Дата первой минутной свечи.
first_1day_candle_date: Option<Timestamp>
Дата первой дневной свечи.
for_qual_investor_flag: bool
Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
weekend_flag: bool
Флаг отображающий доступность торговли инструментом по выходным
blocked_tca_flag: bool
Флаг заблокированного ТКС
Implementations§
source§impl InstrumentShort
impl InstrumentShort
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 InstrumentShort
impl Clone for InstrumentShort
source§fn clone(&self) -> InstrumentShort
fn clone(&self) -> InstrumentShort
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstrumentShort
impl Debug for InstrumentShort
source§impl Default for InstrumentShort
impl Default for InstrumentShort
source§impl Message for InstrumentShort
impl Message for InstrumentShort
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for InstrumentShort
impl PartialEq for InstrumentShort
source§fn eq(&self, other: &InstrumentShort) -> bool
fn eq(&self, other: &InstrumentShort) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstrumentShort
Auto Trait Implementations§
impl Freeze for InstrumentShort
impl RefUnwindSafe for InstrumentShort
impl Send for InstrumentShort
impl Sync for InstrumentShort
impl Unpin for InstrumentShort
impl UnwindSafe for InstrumentShort
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T
in a tonic::Request