pub struct Iid { /* private fields */ }Expand description
Iid - Instrument ID
§ru
Идентификатор инструмента. Обертка над HashMap содержащим информацию по инструменту: биржа, категория, тикер, название компании, размер лота, минимальный шаг цены и тп.
Не предполагается ручное создание объектов этой структуры. Воспользуйтесь
методом crate::Manager::find_iid. Так же iid автоматически находится
и включается в актив при создании: crate::Asset::new
Implementations§
Source§impl Iid
impl Iid
Sourcepub fn new(info: HashMap<String, String>) -> Iid
pub fn new(info: HashMap<String, String>) -> Iid
Create Instrument ID, don’t use this method directly
§ru
Конструктор. Не используйте этот метод напрямую.
Sourcepub fn from_df(df: &DataFrame) -> Result<Iid, AvinError>
pub fn from_df(df: &DataFrame) -> Result<Iid, AvinError>
Create Instrument ID from dataframe with one row. Don’t use this method directly.
§ru
Конструктор. Не используйте этот метод напрямую.
Sourcepub fn info(&self) -> &HashMap<String, String>
pub fn info(&self) -> &HashMap<String, String>
Return reference to HashMap with instrument info.
§ru
Возвращает ссылку на HashMap со всей имеющейся информацией об инструменте.
Sourcepub fn category(&self) -> &String
pub fn category(&self) -> &String
Return category.
§ru
Возвращает название категории инструмента: акция, облигация, индекс, фьючерс и тп.
Sourcepub fn figi(&self) -> &String
pub fn figi(&self) -> &String
Return FIGI - Financial Instrument Global Identifier.
§ru
Возвращает FIGI - глобальный финансовый идентификатор инструмента. Используется брокером при выставлении ордера, так как тикер не является уникальным идентификатором, однозначно определяющим актив.
Trait Implementations§
impl<'__de> Decode<'__de> for Iidwhere
'__de:,
impl Encode for Iid
impl Eq for Iid
impl StructuralPartialEq for Iid
Auto Trait Implementations§
impl Freeze for Iid
impl RefUnwindSafe for Iid
impl Send for Iid
impl Sync for Iid
impl Unpin for Iid
impl UnwindSafe for Iid
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.