Skip to main content

opensearch_client/ml/
column_meta.rs

1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ColumnMeta {
15    #[serde(rename = "name", default, skip_serializing_if = "Option::is_none")]
16    pub name: Option<String>,
17    /// The column type.
18    #[serde(
19        rename = "column_type",
20        default,
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub column_type: Option<String>,
24}
25
26impl ColumnMeta {
27    pub fn new() -> ColumnMeta {
28        ColumnMeta {
29            name: None,
30            column_type: None,
31        }
32    }
33}