lance_namespace_reqwest_client/models/
set_property_mode.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/// SetPropertyMode : The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value 
15/// The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum SetPropertyMode {
18    #[serde(rename = "OVERWRITE")]
19    Overwrite,
20    #[serde(rename = "FAIL")]
21    Fail,
22    #[serde(rename = "SKIP")]
23    Skip,
24
25}
26
27impl std::fmt::Display for SetPropertyMode {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Overwrite => write!(f, "OVERWRITE"),
31            Self::Fail => write!(f, "FAIL"),
32            Self::Skip => write!(f, "SKIP"),
33        }
34    }
35}
36
37impl Default for SetPropertyMode {
38    fn default() -> SetPropertyMode {
39        Self::Overwrite
40    }
41}
42