pub struct CollectionSchemaBuilder { /* private fields */ }
Implementations§
Source§impl CollectionSchemaBuilder
impl CollectionSchemaBuilder
pub fn new(name: &str, description: &str) -> Self
pub fn add_field(&mut self, schema: FieldSchema) -> &mut Self
pub fn set_primary_key<S>(&mut self, name: S) -> Result<&mut Self>
pub fn enable_auto_id(&mut self) -> Result<&mut Self>
pub fn build(&mut 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 · Source§const fn clone_from(&mut self, source: &Self)
const 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 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> 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