pub struct MarketInstrument {
pub figi: String,
pub ticker: String,
pub isin: Option<String>,
pub min_price_increment: Option<f64>,
pub lot: i32,
pub min_quantity: Option<i32>,
pub currency: Option<Currency>,
pub name: String,
pub _type: InstrumentType,
}Fields§
§figi: String§ticker: String§isin: Option<String>§min_price_increment: Option<f64>Шаг цены
lot: i32§min_quantity: Option<i32>Минимальное число инструментов для покупки должно быть не меньше, чем размер лота х количество лотов
currency: Option<Currency>§name: String§_type: InstrumentTypeImplementations§
Source§impl MarketInstrument
impl MarketInstrument
pub fn new( figi: String, ticker: String, lot: i32, name: String, _type: InstrumentType, ) -> MarketInstrument
Trait Implementations§
Source§impl Clone for MarketInstrument
impl Clone for MarketInstrument
Source§fn clone(&self) -> MarketInstrument
fn clone(&self) -> MarketInstrument
Returns a duplicate 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 MarketInstrument
impl Debug for MarketInstrument
Source§impl<'de> Deserialize<'de> for MarketInstrument
impl<'de> Deserialize<'de> for MarketInstrument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MarketInstrument
impl PartialEq for MarketInstrument
Source§impl Serialize for MarketInstrument
impl Serialize for MarketInstrument
impl StructuralPartialEq for MarketInstrument
Auto Trait Implementations§
impl Freeze for MarketInstrument
impl RefUnwindSafe for MarketInstrument
impl Send for MarketInstrument
impl Sync for MarketInstrument
impl Unpin for MarketInstrument
impl UnwindSafe for MarketInstrument
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