Skip to content

Commit ddb8f95

Browse files
committed
Derive clone on all builders for better request building
1 parent b993eaf commit ddb8f95

File tree

80 files changed

+80
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+80
-0
lines changed

src/builders/abort_shard_transfer_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct AbortShardTransferBuilder {
45
/// Local shard id
56
pub(crate) shard_id: Option<u32>,

src/builders/binary_quantization_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct BinaryQuantizationBuilder {
45
/// If true - quantized vectors always will be stored in RAM, ignoring the config of main storage
56
pub(crate) always_ram: Option<Option<bool>>,

src/builders/bool_index_params_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct BoolIndexParamsBuilder {
45
/// If true - store index on disk.
56
pub(crate) on_disk: Option<Option<bool>>,

src/builders/clear_payload_points_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::grpc_macros::convert_option;
22
use crate::qdrant::*;
33

4+
#[derive(Clone)]
45
pub struct ClearPayloadPointsBuilder {
56
/// name of the collection
67
pub(crate) collection_name: Option<String>,

src/builders/collection_params_diff_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct CollectionParamsDiffBuilder {
45
/// Number of replicas of each shard that network tries to maintain
56
pub(crate) replication_factor: Option<Option<u32>>,

src/builders/context_example_pair_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct ContextExamplePairBuilder {
45
pub(crate) positive: Option<Option<VectorExample>>,
56
pub(crate) negative: Option<Option<VectorExample>>,

src/builders/context_input_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct ContextInputBuilder {
45
/// Search space will be constrained by these pairs of vectors
56
pub(crate) pairs: Option<Vec<ContextInputPair>>,

src/builders/context_input_pair_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct ContextInputPairBuilder {
45
/// A positive vector
56
pub(crate) positive: Option<Option<VectorInput>>,

src/builders/count_points_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::grpc_macros::convert_option;
22
use crate::qdrant::*;
33

4+
#[derive(Clone)]
45
pub struct CountPointsBuilder {
56
/// Name of the collection
67
pub(crate) collection_name: Option<String>,

src/builders/create_alias_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::qdrant::*;
22

3+
#[derive(Clone)]
34
pub struct CreateAliasBuilder {
45
/// Name of the collection
56
pub(crate) collection_name: Option<String>,

0 commit comments

Comments
 (0)