pub struct TypePropertiesBuilder /* private fields */ Implementations
Adds column properties for the given column name
Properties accumulate: calling this (or column_property or any shorthand such as primary_key) again for the same column appends to that column’s list rather than replacing it, so .primary_key(“id”).shard_key(“id”) yields [“primary_key”, “shard_key”]. A property already present on the column is not added a second time; the first-seen order is kept.
Adds a single property for a column
Appends to the column’s existing properties (see column); a property already present is not repeated.
pub fn primary_key(self, name: impl Into<String>) -> Self
Shorthand: marks a column as primary key
Shorthand: marks a column as timestamp
Shorthand: marks a column as shard key
Trait Implementations
impl Clone for TypePropertiesBuilder
fn clone(&self) -> TypePropertiesBuilder
fn clone_from(&mut self, source: &Self)
source. Read more