pub struct AllocationState {
pub allocation_count: i64,
pub allocations: Vec<Allocation>,
pub converted: Decimal,
pub native: Decimal,
}Expand description
State of a single allocation to a strategy.
Fields§
§allocation_count: i64Allocation count.
allocations: Vec<Allocation>Individual allocations.
converted: DecimalConverted amount.
native: DecimalNative amount.
Trait Implementations§
Source§impl Clone for AllocationState
impl Clone for AllocationState
Source§fn clone(&self) -> AllocationState
fn clone(&self) -> AllocationState
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 AllocationState
impl Debug for AllocationState
Source§impl<'de> Deserialize<'de> for AllocationState
impl<'de> Deserialize<'de> for AllocationState
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 AllocationState
impl RefUnwindSafe for AllocationState
impl Send for AllocationState
impl Sync for AllocationState
impl Unpin for AllocationState
impl UnwindSafe for AllocationState
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