pub struct FieldDescriptor {
pub name: String,
pub field_type: FieldType,
pub planning_annotations: Vec<PlanningAnnotation>,
pub shadow_annotations: Vec<ShadowAnnotation>,
pub accessor: Option<DomainAccessor>,
}Fields§
§name: String§field_type: FieldType§planning_annotations: Vec<PlanningAnnotation>§shadow_annotations: Vec<ShadowAnnotation>§accessor: Option<DomainAccessor>Implementations§
Source§impl FieldDescriptor
impl FieldDescriptor
pub fn new(name: impl Into<String>, field_type: FieldType) -> Self
pub fn with_planning_annotation(self, annotation: PlanningAnnotation) -> Self
pub fn with_shadow_annotation(self, annotation: ShadowAnnotation) -> Self
pub fn with_accessor(self, accessor: DomainAccessor) -> Self
pub fn is_planning_variable(&self) -> bool
pub fn is_shadow_variable(&self) -> bool
pub fn has_annotation<F>(&self, predicate: F) -> bool
Trait Implementations§
Source§impl Clone for FieldDescriptor
impl Clone for FieldDescriptor
Source§fn clone(&self) -> FieldDescriptor
fn clone(&self) -> FieldDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldDescriptor
impl Debug for FieldDescriptor
Source§impl<'de> Deserialize<'de> for FieldDescriptor
impl<'de> Deserialize<'de> for FieldDescriptor
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 FieldDescriptor
impl PartialEq for FieldDescriptor
Source§impl Serialize for FieldDescriptor
impl Serialize for FieldDescriptor
impl Eq for FieldDescriptor
impl StructuralPartialEq for FieldDescriptor
Auto Trait Implementations§
impl Freeze for FieldDescriptor
impl RefUnwindSafe for FieldDescriptor
impl Send for FieldDescriptor
impl Sync for FieldDescriptor
impl Unpin for FieldDescriptor
impl UnwindSafe for FieldDescriptor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.