pub struct IBRecord {
pub close_price: Option<Decimal>,
pub login: Option<String>,
pub nominal: Option<Decimal>,
pub open_price: Option<Decimal>,
pub side: Option<TradingAction>,
pub surname: Option<String>,
pub symbol: Option<String>,
pub timestamp: Option<u64>,
pub volume: Option<Decimal>,
}Expand description
Structure representing IB data
Fields§
§close_price: Option<Decimal>IB close price or null if not allowed to view
login: Option<String>IB user login or null if not allowed to view
nominal: Option<Decimal>IB nominal or null if not allowed to view
open_price: Option<Decimal>IB open price or null if not allowed to view
side: Option<TradingAction>Operation code or null if not allowed to view
surname: Option<String>IB user surname or null if not allowed to view
symbol: Option<String>Symbol or null if not allowed to view
timestamp: Option<u64>Time the record was created or null if not allowed to view
volume: Option<Decimal>Volume in lots or null if not allowed to view
Implementations§
Source§impl IBRecord
impl IBRecord
Sourcepub fn with_close_price(self, value: impl Into<Decimal>) -> Self
pub fn with_close_price(self, value: impl Into<Decimal>) -> Self
Sets the close_price field of this struct.
Sourcepub fn with_login(self, value: impl Into<String>) -> Self
pub fn with_login(self, value: impl Into<String>) -> Self
Sets the login field of this struct.
Sourcepub fn with_nominal(self, value: impl Into<Decimal>) -> Self
pub fn with_nominal(self, value: impl Into<Decimal>) -> Self
Sets the nominal field of this struct.
Sourcepub fn with_open_price(self, value: impl Into<Decimal>) -> Self
pub fn with_open_price(self, value: impl Into<Decimal>) -> Self
Sets the open_price field of this struct.
Sourcepub fn with_side(self, value: impl Into<TradingAction>) -> Self
pub fn with_side(self, value: impl Into<TradingAction>) -> Self
Sets the side field of this struct.
Sourcepub fn with_surname(self, value: impl Into<String>) -> Self
pub fn with_surname(self, value: impl Into<String>) -> Self
Sets the surname field of this struct.
Sourcepub fn with_symbol(self, value: impl Into<String>) -> Self
pub fn with_symbol(self, value: impl Into<String>) -> Self
Sets the symbol field of this struct.
Sourcepub fn with_timestamp(self, value: impl Into<u64>) -> Self
pub fn with_timestamp(self, value: impl Into<u64>) -> Self
Sets the timestamp field of this struct.
Sourcepub fn with_volume(self, value: impl Into<Decimal>) -> Self
pub fn with_volume(self, value: impl Into<Decimal>) -> Self
Sets the volume field of this struct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IBRecord
impl<'de> Deserialize<'de> for IBRecord
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>,
impl StructuralPartialEq for IBRecord
Auto Trait Implementations§
impl Freeze for IBRecord
impl RefUnwindSafe for IBRecord
impl Send for IBRecord
impl Sync for IBRecord
impl Unpin for IBRecord
impl UnwindSafe for IBRecord
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)