Skip to content

Commit 02c9534

Browse files
committed
Regenerated the client
1 parent ecd5300 commit 02c9534

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/apis/index_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub trait IndexApi: Send + Sync {
4040
fn bulk(&self, body: &str) -> Pin<Box<dyn Future<Output = Result<models::BulkResponse, Error>> + Send>>;
4141
fn delete(&self, delete_document_request: models::DeleteDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::DeleteResponse, Error>> + Send>>;
4242
fn insert(&self, insert_document_request: models::InsertDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::SuccessResponse, Error>> + Send>>;
43-
fn partial_replace(&self, table: &str, id: i32, replace_document_request: models::ReplaceDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::UpdateResponse, Error>> + Send>>;
43+
fn partial_replace(&self, table: &str, id: u64, replace_document_request: models::ReplaceDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::UpdateResponse, Error>> + Send>>;
4444
fn replace(&self, insert_document_request: models::InsertDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::SuccessResponse, Error>> + Send>>;
4545
fn update(&self, update_document_request: models::UpdateDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::UpdateResponse, Error>> + Send>>;
4646
}
@@ -75,7 +75,7 @@ impl<C: Connect>IndexApi for IndexApiClient<C>
7575
}
7676

7777
#[allow(unused_mut)]
78-
fn partial_replace(&self, table: &str, id: i32, replace_document_request: models::ReplaceDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::UpdateResponse, Error>> + Send>> {
78+
fn partial_replace(&self, table: &str, id: u64, replace_document_request: models::ReplaceDocumentRequest) -> Pin<Box<dyn Future<Output = Result<models::UpdateResponse, Error>> + Send>> {
7979
let mut req = __internal_request::Request::new(hyper::Method::POST, "/{table}/_update/{id}".to_string())
8080
;
8181
req = req.with_path_param("table".to_string(), table.to_string());

src/models/delete_document_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct DeleteDocumentRequest {
2222
pub cluster: Option<String>,
2323
/// The ID of document for deletion
2424
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25-
pub id: Option<i32>,
25+
pub id: Option<u64>,
2626
/// Defines the criteria to match documents for deletion
2727
#[serde(rename = "query", skip_serializing_if = "Option::is_none")]
2828
pub query: Option<serde_json::Value>,

src/models/delete_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct DeleteResponse {
2222
pub deleted: Option<i32>,
2323
/// The ID of the deleted document. If multiple documents are deleted, the ID of the first deleted document is returned
2424
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25-
pub id: Option<i32>,
25+
pub id: Option<u64>,
2626
/// Indicates whether any documents to be deleted were found
2727
#[serde(rename = "found", skip_serializing_if = "Option::is_none")]
2828
pub found: Option<bool>,

src/models/hits_hits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
1616
pub struct HitsHits {
1717
/// The ID of the matched document
1818
#[serde(rename = "_id", skip_serializing_if = "Option::is_none")]
19-
pub _id: Option<i32>,
19+
pub _id: Option<u64>,
2020
/// The score of the matched document
2121
#[serde(rename = "_score", skip_serializing_if = "Option::is_none")]
2222
pub _score: Option<i32>,

src/models/insert_document_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct InsertDocumentRequest {
2222
pub cluster: Option<String>,
2323
/// Document ID. If not provided, an ID will be auto-generated
2424
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25-
pub id: Option<i32>,
25+
pub id: Option<u64>,
2626
/// Object containing document data
2727
#[serde(rename = "doc")]
2828
pub doc: serde_json::Value,

src/models/knn_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct KnnQuery {
2525
pub query_vector: Option<Vec<f64>>,
2626
/// The docuemnt ID used as input for the KNN search
2727
#[serde(rename = "doc_id", skip_serializing_if = "Option::is_none")]
28-
pub doc_id: Option<i32>,
28+
pub doc_id: Option<u64>,
2929
/// Optional parameter controlling the accuracy of the search
3030
#[serde(rename = "ef", skip_serializing_if = "Option::is_none")]
3131
pub ef: Option<i32>,

src/models/success_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct SuccessResponse {
1919
pub table: Option<String>,
2020
/// ID of the document affected by the request operation
2121
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22-
pub id: Option<i32>,
22+
pub id: Option<u64>,
2323
/// Indicates whether the document was created as a result of the operation
2424
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
2525
pub created: Option<bool>,

src/models/update_document_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct UpdateDocumentRequest {
2525
pub doc: serde_json::Value,
2626
/// Document ID
2727
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
28-
pub id: Option<i32>,
28+
pub id: Option<u64>,
2929
#[serde(rename = "query", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
3030
pub query: Option<Option<Box<models::QueryFilter>>>,
3131
}

src/models/update_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct UpdateResponse {
2222
pub updated: Option<i32>,
2323
/// Document ID
2424
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25-
pub id: Option<i32>,
25+
pub id: Option<u64>,
2626
/// Result of the update operation, typically 'updated'
2727
#[serde(rename = "result", skip_serializing_if = "Option::is_none")]
2828
pub result: Option<String>,

0 commit comments

Comments
 (0)