pub struct PlanBody {
pub start: EndpointSpec,
pub goal: EndpointSpec,
pub max_steps: u32,
pub max_wall_time_ms: u32,
pub max_branches: u32,
pub strategy: Option<String>,
}Expand description
POST /v1/plan body.
Fields§
§start: EndpointSpec§goal: EndpointSpec§max_steps: u32§max_wall_time_ms: u32§max_branches: u32§strategy: Option<String>Implementations§
Source§impl PlanBody
impl PlanBody
Sourcepub fn to_request(&self) -> Result<PlanRequest, String>
pub fn to_request(&self) -> Result<PlanRequest, String>
Build the wire request (mints a fresh request_id).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanBody
impl<'de> Deserialize<'de> for PlanBody
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 PlanBody
impl RefUnwindSafe for PlanBody
impl Send for PlanBody
impl Sync for PlanBody
impl Unpin for PlanBody
impl UnsafeUnpin for PlanBody
impl UnwindSafe for PlanBody
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