pub struct UpsertPointsBuilder { /* private fields */ }Implementations§
Source§impl UpsertPointsBuilder
impl UpsertPointsBuilder
Sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
name of the collection
pub fn points(self, value: Vec<PointStruct>) -> Self
Sourcepub fn ordering<VALUE: Into<WriteOrdering>>(self, value: VALUE) -> Self
pub fn ordering<VALUE: Into<WriteOrdering>>(self, value: VALUE) -> Self
Write ordering guarantees
Sourcepub fn shard_key_selector<VALUE: Into<ShardKeySelector>>(
self,
value: VALUE,
) -> Self
pub fn shard_key_selector<VALUE: Into<ShardKeySelector>>( self, value: VALUE, ) -> Self
Option for custom sharding to specify used shard keys
Sourcepub fn update_filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
pub fn update_filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
Optional filter to apply to the upsert operation. If set, only points matching the filter will be updated, others will be inserted.
Sourcepub fn update_mode(self, value: UpdateMode) -> Self
pub fn update_mode(self, value: UpdateMode) -> Self
Mode of the upsert operation: insert_only, upsert (default), update_only
Source§impl UpsertPointsBuilder
impl UpsertPointsBuilder
Sourcepub fn build(self) -> UpsertPoints
pub fn build(self) -> UpsertPoints
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for UpsertPointsBuilder
impl Clone for UpsertPointsBuilder
Source§fn clone(&self) -> UpsertPointsBuilder
fn clone(&self) -> UpsertPointsBuilder
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 moreSource§impl From<UpsertPointsBuilder> for UpsertPoints
impl From<UpsertPointsBuilder> for UpsertPoints
Source§fn from(value: UpsertPointsBuilder) -> Self
fn from(value: UpsertPointsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpsertPointsBuilder
impl RefUnwindSafe for UpsertPointsBuilder
impl Send for UpsertPointsBuilder
impl Sync for UpsertPointsBuilder
impl Unpin for UpsertPointsBuilder
impl UnsafeUnpin for UpsertPointsBuilder
impl UnwindSafe for UpsertPointsBuilder
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