pub struct CreateCollectionOptions { /* private fields */ }
Implementations§
Source§impl CreateCollectionOptions
impl CreateCollectionOptions
pub fn new() -> Self
pub fn with_shard_num(shard_num: i32) -> Self
pub fn with_consistency_level(consistency_level: ConsistencyLevel) -> Self
pub fn shard_num(self, shard_num: i32) -> Self
pub fn consistency_level(self, consistency_level: ConsistencyLevel) -> Self
Trait Implementations§
Source§impl Clone for CreateCollectionOptions
impl Clone for CreateCollectionOptions
Source§fn clone(&self) -> CreateCollectionOptions
fn clone(&self) -> CreateCollectionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateCollectionOptions
impl Debug for CreateCollectionOptions
Source§impl Default for CreateCollectionOptions
impl Default for CreateCollectionOptions
impl Copy for CreateCollectionOptions
Auto Trait Implementations§
impl Freeze for CreateCollectionOptions
impl RefUnwindSafe for CreateCollectionOptions
impl Send for CreateCollectionOptions
impl Sync for CreateCollectionOptions
impl Unpin for CreateCollectionOptions
impl UnwindSafe for CreateCollectionOptions
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