pub struct ReplicatePointsBuilder { /* private fields */ }Implementations§
Source§impl ReplicatePointsBuilder
impl ReplicatePointsBuilder
Sourcepub fn new(
from_shard_key: impl Into<ShardKey>,
to_shard_key: impl Into<ShardKey>,
) -> Self
pub fn new( from_shard_key: impl Into<ShardKey>, to_shard_key: impl Into<ShardKey>, ) -> Self
Create a new ReplicatePointsBuilder with required shard keys.
§Arguments
from_shard_key- Source shard key to replicate points fromto_shard_key- Target shard key to replicate points to
§Examples
use qdrant_client::qdrant::{ReplicatePointsBuilder, ShardKey};
let replicate = ReplicatePointsBuilder::new(
ShardKey::from("shard_1".to_string()),
ShardKey::from("shard_2".to_string())
).build();Sourcepub fn filter(self, value: impl Into<Filter>) -> Self
pub fn filter(self, value: impl Into<Filter>) -> Self
Set a filter to replicate only points matching the filter.
§Arguments
filter- Filter condition - only points matching this filter will be replicated
§Examples
use qdrant_client::qdrant::{Condition, Filter, ReplicatePointsBuilder, ShardKey};
let replicate = ReplicatePointsBuilder::new(
ShardKey::from("shard_1".to_string()),
ShardKey::from("shard_2".to_string())
)
.filter(Filter::must([Condition::matches("status", "active".to_string())]))
.build();pub fn build(self) -> ReplicatePoints
Trait Implementations§
Source§impl Clone for ReplicatePointsBuilder
impl Clone for ReplicatePointsBuilder
Source§fn clone(&self) -> ReplicatePointsBuilder
fn clone(&self) -> ReplicatePointsBuilder
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<ReplicatePointsBuilder> for ReplicatePoints
impl From<ReplicatePointsBuilder> for ReplicatePoints
Source§fn from(value: ReplicatePointsBuilder) -> Self
fn from(value: ReplicatePointsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplicatePointsBuilder
impl RefUnwindSafe for ReplicatePointsBuilder
impl Send for ReplicatePointsBuilder
impl Sync for ReplicatePointsBuilder
impl Unpin for ReplicatePointsBuilder
impl UnwindSafe for ReplicatePointsBuilder
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