pub struct CollectionSchemaBuilder { /* private fields */ }Expand description
Fluent collection schema builder.
Implementations§
Source§impl CollectionSchemaBuilder
impl CollectionSchemaBuilder
pub fn new(name: &str) -> Self
pub fn add_field(self, field: FieldSchema) -> Self
pub fn add_vector_field( self, name: &str, data_type: DataType, dimension: u32, index_params: IndexParams, ) -> Self
pub fn add_indexed_field( self, name: &str, data_type: DataType, index_params: IndexParams, ) -> Self
pub fn max_doc_count_per_segment(self, count: u64) -> Self
pub fn build(self) -> Result<CollectionSchema>
Trait Implementations§
Source§impl Clone for CollectionSchemaBuilder
impl Clone for CollectionSchemaBuilder
Source§fn clone(&self) -> CollectionSchemaBuilder
fn clone(&self) -> CollectionSchemaBuilder
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 moreAuto Trait Implementations§
impl Freeze for CollectionSchemaBuilder
impl RefUnwindSafe for CollectionSchemaBuilder
impl Send for CollectionSchemaBuilder
impl Sync for CollectionSchemaBuilder
impl Unpin for CollectionSchemaBuilder
impl UnsafeUnpin for CollectionSchemaBuilder
impl UnwindSafe for CollectionSchemaBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more