lance_namespace_reqwest_client/models/
alter_transaction_action.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://lancedb.github.io/lance-namespace/spec/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://lancedb.github.io/lance-namespace/spec/impls/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/// AlterTransactionAction : A single action that could be performed to alter a transaction. This action holds the model definition for all types of specific actions models, this is to minimize difference and compatibility issue across codegen in different languages. When used, only one of the actions should be non-null for each action. If you would like to perform multiple actions, set a list of actions in the AlterTransactionRequest. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AlterTransactionAction {
17    #[serde(rename = "setStatusAction", skip_serializing_if = "Option::is_none")]
18    pub set_status_action: Option<Box<models::AlterTransactionSetStatus>>,
19    #[serde(rename = "setPropertyAction", skip_serializing_if = "Option::is_none")]
20    pub set_property_action: Option<Box<models::AlterTransactionSetProperty>>,
21    #[serde(rename = "unsetPropertyAction", skip_serializing_if = "Option::is_none")]
22    pub unset_property_action: Option<Box<models::AlterTransactionUnsetProperty>>,
23}
24
25impl AlterTransactionAction {
26    /// A single action that could be performed to alter a transaction. This action holds the model definition for all types of specific actions models, this is to minimize difference and compatibility issue across codegen in different languages. When used, only one of the actions should be non-null for each action. If you would like to perform multiple actions, set a list of actions in the AlterTransactionRequest. 
27    pub fn new() -> AlterTransactionAction {
28        AlterTransactionAction {
29            set_status_action: None,
30            set_property_action: None,
31            unset_property_action: None,
32        }
33    }
34}
35