solverforge 0.9.1

SolverForge - A constraint solver in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use solverforge::prelude::*;

#[planning_entity]
pub struct Shift {
    #[planning_id]
    pub id: i64,

    #[planning_variable(value_range = "employees", allows_unassigned = true)]
    pub employee_id: Option<i64>,
}