pub struct StreamGetProfitData {
pub order: i32,
pub order2: i32,
pub position: i32,
pub profit: Decimal,
}
Fields§
§order: i32
Order number
order2: i32
Transaction ID
position: i32
Position number
profit: Decimal
Profit in account currency
Implementations§
Source§impl StreamGetProfitData
impl StreamGetProfitData
Sourcepub fn with_order(self, value: impl Into<i32>) -> Self
pub fn with_order(self, value: impl Into<i32>) -> Self
Sets the order
field of this struct.
Sourcepub fn with_order2(self, value: impl Into<i32>) -> Self
pub fn with_order2(self, value: impl Into<i32>) -> Self
Sets the order2
field of this struct.
Sourcepub fn with_position(self, value: impl Into<i32>) -> Self
pub fn with_position(self, value: impl Into<i32>) -> Self
Sets the position
field of this struct.
Sourcepub fn with_profit(self, value: impl Into<Decimal>) -> Self
pub fn with_profit(self, value: impl Into<Decimal>) -> Self
Sets the profit
field of this struct.
Trait Implementations§
Source§impl Clone for StreamGetProfitData
impl Clone for StreamGetProfitData
Source§fn clone(&self) -> StreamGetProfitData
fn clone(&self) -> StreamGetProfitData
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 StreamGetProfitData
impl Debug for StreamGetProfitData
Source§impl Default for StreamGetProfitData
impl Default for StreamGetProfitData
Source§fn default() -> StreamGetProfitData
fn default() -> StreamGetProfitData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetProfitData
impl<'de> Deserialize<'de> for StreamGetProfitData
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 StreamGetProfitData
impl PartialEq for StreamGetProfitData
Source§impl Serialize for StreamGetProfitData
impl Serialize for StreamGetProfitData
impl StructuralPartialEq for StreamGetProfitData
Auto Trait Implementations§
impl Freeze for StreamGetProfitData
impl RefUnwindSafe for StreamGetProfitData
impl Send for StreamGetProfitData
impl Sync for StreamGetProfitData
impl Unpin for StreamGetProfitData
impl UnwindSafe for StreamGetProfitData
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