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
43
44
45
46
47
48
49
50
/*
* 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};
/// SuccessResponse : Response object indicating the success of an operation, such as inserting or updating a document
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SuccessResponse {
/// Name of the document table
#[serde(rename = "table", skip_serializing_if = "Option::is_none")]
pub table: Option<String>,
/// ID of the document affected by the request operation
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<u64>,
/// Indicates whether the document was created as a result of the operation
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
pub created: Option<bool>,
/// Result of the operation, typically 'created', 'updated', or 'deleted'
#[serde(rename = "result", skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
/// Indicates whether the document was found in the table
#[serde(rename = "found", skip_serializing_if = "Option::is_none")]
pub found: Option<bool>,
/// HTTP status code representing the result of the operation
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<i32>,
}
impl SuccessResponse {
/// Response object indicating the success of an operation, such as inserting or updating a document
pub fn new() -> SuccessResponse {
SuccessResponse {
table: None,
id: None,
created: None,
result: None,
found: None,
status: None,
}
}
}