pub struct PartitionBuilder { /* private fields */ }Expand description
Builder for Partition.
Implementations§
Source§impl PartitionBuilder
impl PartitionBuilder
Sourcepub fn partition_type<VALUE: Into<PartitionType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn partition_type<VALUE: Into<PartitionType>>( &mut self, value: VALUE, ) -> &mut Self
there is only one “HASH”,option currenctly
Sourcepub fn partition_num<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn partition_num<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
number of tablet for table, range [1, 1000]
Trait Implementations§
Source§impl Clone for PartitionBuilder
impl Clone for PartitionBuilder
Source§fn clone(&self) -> PartitionBuilder
fn clone(&self) -> PartitionBuilder
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 moreAuto Trait Implementations§
impl Freeze for PartitionBuilder
impl RefUnwindSafe for PartitionBuilder
impl Send for PartitionBuilder
impl Sync for PartitionBuilder
impl Unpin for PartitionBuilder
impl UnwindSafe for PartitionBuilder
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