Skip to main content
pub struct TableCreationOptions  /* private fields */ 

Options for the table an ingest creates: the create table options of /insert/records/fromfiles.

Each setter sets its option as well as its value; an option without a setter can be given with set_option.

Implementations

Source

pub fn new() -> Self

Options with nothing set.

Source

pub fn type_id(&self) -> Option<&str>

Source

pub fn set_type_id(&mut self, type_id: &str) -> &mut Self

Source

pub fn set_no_error_if_exists(&mut self, no_error_if_exists: bool) -> &mut Self

Source

pub fn is_replicated(&self) -> bool

Source

pub fn set_replicated(&mut self, replicated: bool) -> &mut Self

Sets whether the table is replicated.

Source

pub fn foreign_keys(&self) -> Option<&[String]>

Source

pub fn set_foreign_keys(&mut self, foreign_keys: Vec<String>) -> &mut Self

Sets the foreign keys, sent joined by commas; an empty list is ignored, with a warning.

Source

pub fn set_foreign_shard_key(&mut self, foreign_shard_key: &str) -> &mut Self

Sets the foreign shard key; an empty one is ignored, with a warning.

Source

pub fn set_partition_type(&mut self, partition_type: PartitionType) -> &mut Self

Source

pub fn set_partition_keys(&mut self, partition_keys: Vec<String>) -> &mut Self

Sets the partition keys, sent joined by commas; an empty list is ignored, with a warning.

Source

pub fn set_partition_definitions( &mut self, partition_definitions: Vec<String>, ) -> &mut Self

Sets the partition definitions, sent joined by commas; an empty list is ignored, with a warning.

Source

pub fn set_automatic_partition( &mut self, automatic_partition: bool, ) -> &mut Self

Source

pub fn ttl(&self) -> i32

Source

pub fn set_ttl(&mut self, ttl: i32) -> &mut Self

Source

pub fn set_result_table(&mut self, result_table: bool) -> &mut Self

Source

pub fn set_option(&mut self, key: &str, value: impl ToString) -> &mut Self

Sets any option, by name, over what the setters set.

The options to send.

Trait Implementations

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 more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Source

fn eq(&self, other: &TableCreationOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.