pub struct TypePropertiesBuilder /* private fields */ Implementations
Source
pub fn column( self, name: impl Into<String>, props: KineticaColumnProperties, ) -> Self
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.
Source
pub fn primary_key(self, name: impl Into<String>) -> Self
Shorthand: marks a column as primary key
Trait Implementations
Source
impl Clone for TypePropertiesBuilder
Source
fn clone(&self) -> TypePropertiesBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource
impl Debug for TypePropertiesBuilder
Source
impl Default for TypePropertiesBuilder
Source
fn default() -> TypePropertiesBuilder
Returns the “default value” for a type. Read more