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: i64
§allocations: Vec<Allocation>
§converted: Decimal
§native: Decimal
Trait Implementations§
Source§impl Clone for AllocationState
impl Clone for AllocationState
Source§fn clone(&self) -> AllocationState
fn clone(&self) -> AllocationState
Returns a copy 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
Source§impl PartialEq for AllocationState
impl PartialEq for AllocationState
impl StructuralPartialEq for AllocationState
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