Skip to main content

lance_namespace_reqwest_client/models/
alter_virtual_column_entry.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AlterVirtualColumnEntry {
16    /// List of input column names for the virtual column (optional)
17    #[serde(rename = "input_columns", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub input_columns: Option<Option<Vec<String>>>,
19    /// Docker image to use for the UDF (optional)
20    #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub image: Option<Option<String>>,
22    /// Base64 encoded pickled UDF (optional)
23    #[serde(rename = "udf", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub udf: Option<Option<String>>,
25    /// Name of the UDF (optional)
26    #[serde(rename = "udf_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub udf_name: Option<Option<String>>,
28    /// Version of the UDF (optional)
29    #[serde(rename = "udf_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub udf_version: Option<Option<String>>,
31    /// UDF backend type (e.g. DockerUDFSpecV1) (optional)
32    #[serde(rename = "udf_backend", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
33    pub udf_backend: Option<Option<String>>,
34    /// Whether to automatically backfill the column (optional)
35    #[serde(rename = "auto_backfill", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub auto_backfill: Option<Option<bool>>,
37    /// JSON-serialized manifest for the UDF environment (optional)
38    #[serde(rename = "manifest", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
39    pub manifest: Option<Option<String>>,
40    /// SHA-256 checksum of the manifest content (optional)
41    #[serde(rename = "manifest_checksum", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
42    pub manifest_checksum: Option<Option<String>>,
43    /// User-supplied field metadata (optional)
44    #[serde(rename = "field_metadata", skip_serializing_if = "Option::is_none")]
45    pub field_metadata: Option<std::collections::HashMap<String, String>>,
46}
47
48impl AlterVirtualColumnEntry {
49    pub fn new() -> AlterVirtualColumnEntry {
50        AlterVirtualColumnEntry {
51            input_columns: None,
52            image: None,
53            udf: None,
54            udf_name: None,
55            udf_version: None,
56            udf_backend: None,
57            auto_backfill: None,
58            manifest: None,
59            manifest_checksum: None,
60            field_metadata: None,
61        }
62    }
63}
64