pub struct SolveRequest {
pub domain: IndexMap<String, DomainObjectDto>,
pub constraints: IndexMap<String, Vec<StreamComponent>>,
pub wasm: String,
pub allocator: String,
pub deallocator: String,
pub solution_deallocator: Option<String>,
pub list_accessor: ListAccessorDto,
pub problem: String,
pub environment_mode: Option<String>,
pub termination: Option<TerminationConfig>,
}Expand description
Solve request matching solverforge-wasm-service’s PlanningProblem schema Uses IndexMap for domain and constraints to preserve insertion order.
Fields§
§domain: IndexMap<String, DomainObjectDto>§constraints: IndexMap<String, Vec<StreamComponent>>§wasm: String§allocator: String§deallocator: String§solution_deallocator: Option<String>§list_accessor: ListAccessorDto§problem: String§environment_mode: Option<String>§termination: Option<TerminationConfig>Implementations§
Source§impl SolveRequest
impl SolveRequest
pub fn new( domain: IndexMap<String, DomainObjectDto>, constraints: IndexMap<String, Vec<StreamComponent>>, wasm: String, allocator: String, deallocator: String, list_accessor: ListAccessorDto, problem: String, ) -> Self
pub fn with_solution_deallocator(self, deallocator: impl Into<String>) -> Self
pub fn with_environment_mode(self, mode: impl Into<String>) -> Self
pub fn with_termination(self, termination: TerminationConfig) -> Self
Trait Implementations§
Source§impl Clone for SolveRequest
impl Clone for SolveRequest
Source§fn clone(&self) -> SolveRequest
fn clone(&self) -> SolveRequest
Returns a duplicate 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 SolveRequest
impl Debug for SolveRequest
Source§impl<'de> Deserialize<'de> for SolveRequest
impl<'de> Deserialize<'de> for SolveRequest
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 SolveRequest
impl PartialEq for SolveRequest
Source§impl Serialize for SolveRequest
impl Serialize for SolveRequest
impl Eq for SolveRequest
impl StructuralPartialEq for SolveRequest
Auto Trait Implementations§
impl Freeze for SolveRequest
impl RefUnwindSafe for SolveRequest
impl Send for SolveRequest
impl Sync for SolveRequest
impl Unpin for SolveRequest
impl UnwindSafe for SolveRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.