1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Manticore Search Client
*
* Сlient for Manticore Search.
*
* The version of the OpenAPI document: 5.0.0
* Contact: info@manticoresearch.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// UpdateResponse : Success response returned after updating one or more documents
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateResponse {
/// Name of the document table
#[serde(rename = "table", skip_serializing_if = "Option::is_none")]
pub table: Option<String>,
/// Number of documents updated
#[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
pub updated: Option<i32>,
/// Document ID
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<u64>,
/// Result of the update operation, typically 'updated'
#[serde(rename = "result", skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
}
impl UpdateResponse {
/// Success response returned after updating one or more documents
pub fn new() -> UpdateResponse {
UpdateResponse {
table: None,
updated: None,
id: None,
result: None,
}
}
}