pub struct GeneratorIDDefinition {
pub id_type: Type,
pub generator: GeneratorConfig,
}Expand description
Primary key with generator config.
Fields§
§id_type: TypeType of the primary key
generator: GeneratorConfigGenerator configuration for the primary key
Implementations§
Source§impl GeneratorIDDefinition
impl GeneratorIDDefinition
Sourcepub fn to_column_definition(&self) -> ColumnDefinition
pub fn to_column_definition(&self) -> ColumnDefinition
Convert to base ColumnDefinition (discarding generator info). Uses “id” as the column name for primary keys.
Trait Implementations§
Source§impl Clone for GeneratorIDDefinition
impl Clone for GeneratorIDDefinition
Source§fn clone(&self) -> GeneratorIDDefinition
fn clone(&self) -> GeneratorIDDefinition
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 GeneratorIDDefinition
impl Debug for GeneratorIDDefinition
Source§impl<'de> Deserialize<'de> for GeneratorIDDefinition
impl<'de> Deserialize<'de> for GeneratorIDDefinition
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 GeneratorIDDefinition
impl RefUnwindSafe for GeneratorIDDefinition
impl Send for GeneratorIDDefinition
impl Sync for GeneratorIDDefinition
impl Unpin for GeneratorIDDefinition
impl UnsafeUnpin for GeneratorIDDefinition
impl UnwindSafe for GeneratorIDDefinition
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