pub struct Plan {
pub goal: String,
pub session_id: Option<String>,
pub remaining_budget: Option<i64>,
pub effective_cap: Option<u64>,
pub paths: Vec<PlanPath>,
}Expand description
Result envelope returned by Store::plan.
Fields§
§goal: String§session_id: Option<String>Some(id) when the planner was called with --intent/
session_id; None for the bare --max-cost flow.
remaining_budget: Option<i64>Budget remaining for session_id, when one was supplied
and a cap is configured. None otherwise.
effective_cap: Option<u64>Whichever of max_cost and remaining_budget is smaller.
None when neither cap applies.
paths: Vec<PlanPath>Paths sorted cheapest-first.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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 Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
Blanket Implementations§
impl<T> Allocation for T
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