pub struct Trade { /* private fields */ }Implementations§
Source§impl Trade
impl Trade
pub fn new(p: f32, s: i64, t: i64) -> Trade
pub fn set_c1(&mut self, c1: i64)
pub fn with_c1(self, c1: i64) -> Trade
pub fn c1(&self) -> Option<&i64>
pub fn reset_c1(&mut self)
pub fn set_c2(&mut self, c2: i64)
pub fn with_c2(self, c2: i64) -> Trade
pub fn c2(&self) -> Option<&i64>
pub fn reset_c2(&mut self)
pub fn set_c3(&mut self, c3: i64)
pub fn with_c3(self, c3: i64) -> Trade
pub fn c3(&self) -> Option<&i64>
pub fn reset_c3(&mut self)
pub fn set_c4(&mut self, c4: i64)
pub fn with_c4(self, c4: i64) -> Trade
pub fn c4(&self) -> Option<&i64>
pub fn reset_c4(&mut self)
pub fn set_e(&mut self, e: String)
pub fn with_e(self, e: String) -> Trade
pub fn e(&self) -> Option<&String>
pub fn reset_e(&mut self)
pub fn set_p(&mut self, p: f32)
pub fn with_p(self, p: f32) -> Trade
pub fn p(&self) -> &f32
pub fn set_s(&mut self, s: i64)
pub fn with_s(self, s: i64) -> Trade
pub fn s(&self) -> &i64
pub fn set_t(&mut self, t: i64)
pub fn with_t(self, t: i64) -> Trade
pub fn t(&self) -> &i64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnsafeUnpin for Trade
impl UnwindSafe for Trade
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