pub struct DomainClass {
pub name: String,
pub annotations: Vec<PlanningAnnotation>,
pub fields: Vec<FieldDescriptor>,
}Fields§
§name: String§annotations: Vec<PlanningAnnotation>§fields: Vec<FieldDescriptor>Implementations§
Source§impl DomainClass
impl DomainClass
pub fn new(name: impl Into<String>) -> Self
pub fn with_annotation(self, annotation: PlanningAnnotation) -> Self
pub fn with_field(self, field: FieldDescriptor) -> Self
pub fn is_planning_entity(&self) -> bool
pub fn is_planning_solution(&self) -> bool
pub fn get_planning_variables(&self) -> impl Iterator<Item = &FieldDescriptor>
pub fn get_planning_id_field(&self) -> Option<&FieldDescriptor>
pub fn get_score_field(&self) -> Option<&FieldDescriptor>
Trait Implementations§
Source§impl Clone for DomainClass
impl Clone for DomainClass
Source§fn clone(&self) -> DomainClass
fn clone(&self) -> DomainClass
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 DomainClass
impl Debug for DomainClass
Source§impl<'de> Deserialize<'de> for DomainClass
impl<'de> Deserialize<'de> for DomainClass
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 DomainClass
impl PartialEq for DomainClass
Source§impl Serialize for DomainClass
impl Serialize for DomainClass
impl Eq for DomainClass
impl StructuralPartialEq for DomainClass
Auto Trait Implementations§
impl Freeze for DomainClass
impl RefUnwindSafe for DomainClass
impl Send for DomainClass
impl Sync for DomainClass
impl Unpin for DomainClass
impl UnwindSafe for DomainClass
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.