pub struct FieldDescriptor {
pub field_type: String,
pub accessor: Option<DomainAccessor>,
pub annotations: Vec<PlanningAnnotation>,
}Expand description
Field descriptor with type, accessor, and annotations
Fields§
§field_type: String§accessor: Option<DomainAccessor>§annotations: Vec<PlanningAnnotation>Implementations§
Source§impl FieldDescriptor
impl FieldDescriptor
pub fn new(field_type: impl Into<String>) -> FieldDescriptor
pub fn with_accessor(self, accessor: DomainAccessor) -> FieldDescriptor
pub fn with_annotation(self, annotation: PlanningAnnotation) -> FieldDescriptor
pub fn with_annotations( self, annotations: Vec<PlanningAnnotation>, ) -> FieldDescriptor
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 · 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 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<FieldDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldDescriptor, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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