pub struct AllocationPortion {
pub percentage: Decimal,
pub allocation: Allocation,
}Expand description
A portion of an allocation with its own strategy.
Fields§
§percentage: DecimalThe percentage of the parent allocation (0-100).
allocation: AllocationThe allocation details for this portion.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationPortion
impl Clone for AllocationPortion
Source§impl Debug for AllocationPortion
impl Debug for AllocationPortion
Source§impl<'de> Deserialize<'de> for AllocationPortion
impl<'de> Deserialize<'de> for AllocationPortion
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 AllocationPortion
impl PartialEq for AllocationPortion
Source§impl Serialize for AllocationPortion
impl Serialize for AllocationPortion
impl StructuralPartialEq for AllocationPortion
Auto Trait Implementations§
impl Forget for AllocationPortion
impl Freeze for AllocationPortion
impl Move for AllocationPortion
impl RefUnwindSafe for AllocationPortion
impl Send for AllocationPortion
impl Sync for AllocationPortion
impl Unpin for AllocationPortion
impl UnsafeUnpin for AllocationPortion
impl UnwindSafe for AllocationPortion
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