#[non_exhaustive]pub struct RecurringBuyAllocation {
pub ccy: String,
pub ratio: NumberString,
pub min_px: String,
pub max_px: String,
pub total_amt: NumberString,
pub profit: NumberString,
pub avg_px: NumberString,
pub px: NumberString,
pub extra: ExtraFields,
}Expand description
Currency allocation entry nested in RecurringBuyOrderUpdate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ccy: StringCurrency code, e.g., BTC.
ratio: NumberStringAllocation ratio for this currency (0–1).
min_px: StringMinimum price of price range ("" = no limit).
max_px: StringMaximum price of price range ("" = no limit).
total_amt: NumberStringAccumulated quantity in units of this currency.
profit: NumberStringProfit in units of investment_ccy.
avg_px: NumberStringAverage recurring buy price, quoted in investment_ccy.
px: NumberStringCurrent market price, quoted in investment_ccy.
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for RecurringBuyAllocation
impl Clone for RecurringBuyAllocation
Source§fn clone(&self) -> RecurringBuyAllocation
fn clone(&self) -> RecurringBuyAllocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecurringBuyAllocation
impl Debug for RecurringBuyAllocation
Source§impl Default for RecurringBuyAllocation
impl Default for RecurringBuyAllocation
Source§fn default() -> RecurringBuyAllocation
fn default() -> RecurringBuyAllocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecurringBuyAllocation
impl<'de> Deserialize<'de> for RecurringBuyAllocation
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 RecurringBuyAllocation
impl RefUnwindSafe for RecurringBuyAllocation
impl Send for RecurringBuyAllocation
impl Sync for RecurringBuyAllocation
impl Unpin for RecurringBuyAllocation
impl UnsafeUnpin for RecurringBuyAllocation
impl UnwindSafe for RecurringBuyAllocation
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