pub struct CreateShardKeyBuilder { /* private fields */ }Implementations§
Source§impl CreateShardKeyBuilder
impl CreateShardKeyBuilder
Sourcepub fn shards_number(self, value: u32) -> Self
pub fn shards_number(self, value: u32) -> Self
Number of shards to create per shard key
Sourcepub fn replication_factor(self, value: u32) -> Self
pub fn replication_factor(self, value: u32) -> Self
Number of replicas of each shard to create
Sourcepub fn placement(self, value: Vec<u64>) -> Self
pub fn placement(self, value: Vec<u64>) -> Self
List of peer ids, allowed to create shards. If empty - all peers are allowed
Sourcepub fn initial_state(self, value: ReplicaState) -> Self
pub fn initial_state(self, value: ReplicaState) -> Self
Initial replica state for newly created shards.
Uses Active state by default.
§Warning
Use with caution! Setting arbirray replica states here may break your Qdrant cluster.
Source§impl CreateShardKeyBuilder
impl CreateShardKeyBuilder
Sourcepub fn build(self) -> CreateShardKey
pub fn build(self) -> CreateShardKey
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for CreateShardKeyBuilder
impl Clone for CreateShardKeyBuilder
Source§fn clone(&self) -> CreateShardKeyBuilder
fn clone(&self) -> CreateShardKeyBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateShardKeyBuilder
impl Default for CreateShardKeyBuilder
Source§impl From<CreateShardKeyBuilder> for CreateShardKey
impl From<CreateShardKeyBuilder> for CreateShardKey
Source§fn from(value: CreateShardKeyBuilder) -> Self
fn from(value: CreateShardKeyBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateShardKeyBuilder
impl RefUnwindSafe for CreateShardKeyBuilder
impl Send for CreateShardKeyBuilder
impl Sync for CreateShardKeyBuilder
impl Unpin for CreateShardKeyBuilder
impl UnwindSafe for CreateShardKeyBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request