pub struct CreateShardKeyBuilder { /* private fields */ }
Expand description
Builder for CreateShardKey
.
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
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 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> 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