pub enum PlanningAnnotation {
Show 13 variants
PlanningId,
PlanningEntity,
PlanningSolution,
PlanningVariable {
value_range_provider_refs: Vec<String>,
allows_unassigned: bool,
},
PlanningListVariable {
value_range_provider_refs: Vec<String>,
},
PlanningScore {
bendable_hard_levels: Option<usize>,
bendable_soft_levels: Option<usize>,
},
ValueRangeProvider {
id: Option<String>,
},
ProblemFactProperty,
ProblemFactCollectionProperty,
PlanningEntityProperty,
PlanningEntityCollectionProperty,
PlanningPin,
InverseRelationShadowVariable {
source_variable_name: String,
},
}Variants§
PlanningId
PlanningEntity
PlanningSolution
PlanningVariable
PlanningListVariable
PlanningScore
ValueRangeProvider
ProblemFactProperty
ProblemFactCollectionProperty
PlanningEntityProperty
PlanningEntityCollectionProperty
PlanningPin
InverseRelationShadowVariable
Implementations§
Source§impl PlanningAnnotation
impl PlanningAnnotation
pub fn planning_variable(value_range_provider_refs: Vec<String>) -> Self
pub fn planning_variable_unassigned( value_range_provider_refs: Vec<String>, ) -> Self
pub fn planning_list_variable(value_range_provider_refs: Vec<String>) -> Self
pub fn planning_score() -> Self
pub fn planning_score_bendable(hard_levels: usize, soft_levels: usize) -> Self
pub fn value_range_provider(id: impl Into<String>) -> Self
pub fn inverse_relation_shadow(source_variable_name: impl Into<String>) -> Self
pub fn is_planning_variable(&self) -> bool
pub fn is_planning_list_variable(&self) -> bool
pub fn is_any_variable(&self) -> bool
pub fn is_shadow_variable(&self) -> bool
Trait Implementations§
Source§impl Clone for PlanningAnnotation
impl Clone for PlanningAnnotation
Source§fn clone(&self) -> PlanningAnnotation
fn clone(&self) -> PlanningAnnotation
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 PlanningAnnotation
impl Debug for PlanningAnnotation
Source§impl<'de> Deserialize<'de> for PlanningAnnotation
impl<'de> Deserialize<'de> for PlanningAnnotation
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 PlanningAnnotation
impl PartialEq for PlanningAnnotation
Source§impl Serialize for PlanningAnnotation
impl Serialize for PlanningAnnotation
impl Eq for PlanningAnnotation
impl StructuralPartialEq for PlanningAnnotation
Auto Trait Implementations§
impl Freeze for PlanningAnnotation
impl RefUnwindSafe for PlanningAnnotation
impl Send for PlanningAnnotation
impl Sync for PlanningAnnotation
impl Unpin for PlanningAnnotation
impl UnwindSafe for PlanningAnnotation
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.