pub struct GeneratorFieldDefinition {
pub name: String,
pub field_type: Type,
pub generator: GeneratorConfig,
pub nullable: bool,
}Expand description
Field with generator config. Embeds ColumnDefinition.
Fields§
§name: StringField name (flattened from ColumnDefinition-like structure)
field_type: TypeField type (flattened from ColumnDefinition-like structure)
generator: GeneratorConfigGenerator configuration for this field
nullable: boolWhether this field is nullable
Implementations§
Source§impl GeneratorFieldDefinition
impl GeneratorFieldDefinition
Sourcepub fn to_column_definition(&self) -> ColumnDefinition
pub fn to_column_definition(&self) -> ColumnDefinition
Convert to base ColumnDefinition (discarding generator info).
Trait Implementations§
Source§impl Clone for GeneratorFieldDefinition
impl Clone for GeneratorFieldDefinition
Source§fn clone(&self) -> GeneratorFieldDefinition
fn clone(&self) -> GeneratorFieldDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneratorFieldDefinition
impl Debug for GeneratorFieldDefinition
Source§impl<'de> Deserialize<'de> for GeneratorFieldDefinition
impl<'de> Deserialize<'de> for GeneratorFieldDefinition
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
Auto Trait Implementations§
impl Freeze for GeneratorFieldDefinition
impl RefUnwindSafe for GeneratorFieldDefinition
impl Send for GeneratorFieldDefinition
impl Sync for GeneratorFieldDefinition
impl Unpin for GeneratorFieldDefinition
impl UnsafeUnpin for GeneratorFieldDefinition
impl UnwindSafe for GeneratorFieldDefinition
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