pub struct CreateShardKeyStmt {
pub collection: String,
pub shard_key: ShardKey,
pub shards_number: Option<u64>,
pub replication_factor: Option<u64>,
pub placement: Option<Vec<u64>>,
pub initial_state: Option<String>,
}Expand description
CREATE SHARD KEY '<key>' ON COLLECTION <c> [WITH (…)].
Fields§
§collection: StringCollection to partition.
shard_key: ShardKeyShard key value to register ('acme' or 101).
shards_number: Option<u64>Number of shards behind this key.
replication_factor: Option<u64>Replication factor for these shards.
placement: Option<Vec<u64>>Peer ids placing the key’s shards (placement = […]).
initial_state: Option<String>Initial replica state (initial_state = '…'), canonical casing.
Trait Implementations§
Source§impl Clone for CreateShardKeyStmt
impl Clone for CreateShardKeyStmt
Source§fn clone(&self) -> CreateShardKeyStmt
fn clone(&self) -> CreateShardKeyStmt
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 CreateShardKeyStmt
impl Debug for CreateShardKeyStmt
Source§impl PartialEq for CreateShardKeyStmt
impl PartialEq for CreateShardKeyStmt
impl StructuralPartialEq for CreateShardKeyStmt
Auto Trait Implementations§
impl Freeze for CreateShardKeyStmt
impl RefUnwindSafe for CreateShardKeyStmt
impl Send for CreateShardKeyStmt
impl Sync for CreateShardKeyStmt
impl Unpin for CreateShardKeyStmt
impl UnsafeUnpin for CreateShardKeyStmt
impl UnwindSafe for CreateShardKeyStmt
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