pub struct CreateFieldIndexCollectionBuilder { /* private fields */ }
Expand description
Builder for CreateFieldIndexCollection
.
Implementations§
source§impl CreateFieldIndexCollectionBuilder
impl CreateFieldIndexCollectionBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
name of the collection
sourcepub fn field_name(self, value: String) -> Self
pub fn field_name(self, value: String) -> Self
Field name to index
sourcepub fn field_type<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn field_type<VALUE: Into<i32>>(self, value: VALUE) -> Self
Field type.
sourcepub fn field_index_params<VALUE: Into<IndexParams>>(self, value: VALUE) -> Self
pub fn field_index_params<VALUE: Into<IndexParams>>(self, value: VALUE) -> Self
Payload index params.
sourcepub fn ordering<VALUE: Into<WriteOrdering>>(self, value: VALUE) -> Self
pub fn ordering<VALUE: Into<WriteOrdering>>(self, value: VALUE) -> Self
Write ordering guarantees
source§impl CreateFieldIndexCollectionBuilder
impl CreateFieldIndexCollectionBuilder
sourcepub fn build(self) -> CreateFieldIndexCollection
pub fn build(self) -> CreateFieldIndexCollection
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<CreateFieldIndexCollectionBuilder> for CreateFieldIndexCollection
impl From<CreateFieldIndexCollectionBuilder> for CreateFieldIndexCollection
source§fn from(value: CreateFieldIndexCollectionBuilder) -> Self
fn from(value: CreateFieldIndexCollectionBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateFieldIndexCollectionBuilder
impl RefUnwindSafe for CreateFieldIndexCollectionBuilder
impl Send for CreateFieldIndexCollectionBuilder
impl Sync for CreateFieldIndexCollectionBuilder
impl Unpin for CreateFieldIndexCollectionBuilder
impl UnwindSafe for CreateFieldIndexCollectionBuilder
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