lance_namespace_reqwest_client/models/commit_table_result.rs
1/*
2 * Lance Namespace Specification
3 *
4 * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CommitTableResult : Result of a single operation within a batch commit. Each result corresponds to one operation in the request, in the same order. Exactly one of the result fields will be set.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CommitTableResult {
17 /// Result of a DeclareTable operation
18 #[serde(rename = "declare_table", skip_serializing_if = "Option::is_none")]
19 pub declare_table: Option<Box<models::DeclareTableResponse>>,
20 /// Result of a CreateTableVersion operation
21 #[serde(rename = "create_table_version", skip_serializing_if = "Option::is_none")]
22 pub create_table_version: Option<Box<models::CreateTableVersionResponse>>,
23 /// Result of a DeleteTableVersions operation
24 #[serde(rename = "delete_table_versions", skip_serializing_if = "Option::is_none")]
25 pub delete_table_versions: Option<Box<models::BatchDeleteTableVersionsResponse>>,
26 /// Result of a DeregisterTable operation
27 #[serde(rename = "deregister_table", skip_serializing_if = "Option::is_none")]
28 pub deregister_table: Option<Box<models::DeregisterTableResponse>>,
29}
30
31impl CommitTableResult {
32 /// Result of a single operation within a batch commit. Each result corresponds to one operation in the request, in the same order. Exactly one of the result fields will be set.
33 pub fn new() -> CommitTableResult {
34 CommitTableResult {
35 declare_table: None,
36 create_table_version: None,
37 delete_table_versions: None,
38 deregister_table: None,
39 }
40 }
41}
42