pub struct GetProfitCalculationResponse {
pub profit: Decimal,
}
Expand description
Structure representing profit information
Fields§
§profit: Decimal
Profit in account currency
Implementations§
Source§impl GetProfitCalculationResponse
impl GetProfitCalculationResponse
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 GetProfitCalculationResponse
impl Clone for GetProfitCalculationResponse
Source§fn clone(&self) -> GetProfitCalculationResponse
fn clone(&self) -> GetProfitCalculationResponse
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 GetProfitCalculationResponse
impl Debug for GetProfitCalculationResponse
Source§impl Default for GetProfitCalculationResponse
impl Default for GetProfitCalculationResponse
Source§fn default() -> GetProfitCalculationResponse
fn default() -> GetProfitCalculationResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetProfitCalculationResponse
impl<'de> Deserialize<'de> for GetProfitCalculationResponse
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 GetProfitCalculationResponse
impl PartialEq for GetProfitCalculationResponse
Source§fn eq(&self, other: &GetProfitCalculationResponse) -> bool
fn eq(&self, other: &GetProfitCalculationResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetProfitCalculationResponse
Auto Trait Implementations§
impl Freeze for GetProfitCalculationResponse
impl RefUnwindSafe for GetProfitCalculationResponse
impl Send for GetProfitCalculationResponse
impl Sync for GetProfitCalculationResponse
impl Unpin for GetProfitCalculationResponse
impl UnwindSafe for GetProfitCalculationResponse
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