pub struct PoolPlan {
pub steps: Vec<Step>,
pub orders: Vec<Order>,
pub revenue: Revenue,
pub idle: bool,
}Expand description
A pool’s plan.
Fields§
§steps: Vec<Step>One per market time unit.
orders: Vec<Order>The orders.
revenue: RevenueRevenue across scenarios.
idle: boolNothing to earn after losses: the storage stays idle.
Trait Implementations§
impl StructuralPartialEq for PoolPlan
Auto Trait Implementations§
impl Forget for PoolPlan
impl Freeze for PoolPlan
impl Move for PoolPlan
impl RefUnwindSafe for PoolPlan
impl Send for PoolPlan
impl Sync for PoolPlan
impl Unpin for PoolPlan
impl UnsafeUnpin for PoolPlanwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Step>: UnsafeUnpin,
PhantomData<Order>: UnsafeUnpin,
impl UnwindSafe for PoolPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more