Skip to main content

lance_namespace_reqwest_client/models/
refresh_materialized_view_request.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 RefreshMaterializedViewRequest {
16    #[serde(rename = "identity", skip_serializing_if = "Option::is_none")]
17    pub identity: Option<Box<models::Identity>>,
18    /// Table identifier path (namespace + table name)
19    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20    pub id: Option<Vec<String>>,
21    /// Optional source version to refresh from
22    #[serde(rename = "src_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub src_version: Option<Option<i32>>,
24    /// Optional maximum rows per fragment
25    #[serde(rename = "max_rows_per_fragment", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub max_rows_per_fragment: Option<Option<i32>>,
27    /// Optional concurrency override
28    #[serde(rename = "concurrency", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub concurrency: Option<Option<i32>>,
30    /// Optional intra-applier concurrency override
31    #[serde(rename = "intra_applier_concurrency", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
32    pub intra_applier_concurrency: Option<Option<i32>>,
33    /// Optional cluster name
34    #[serde(rename = "cluster", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
35    pub cluster: Option<Option<String>>,
36    /// Optional manifest name
37    #[serde(rename = "manifest", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
38    pub manifest: Option<Option<String>>,
39}
40
41impl RefreshMaterializedViewRequest {
42    pub fn new() -> RefreshMaterializedViewRequest {
43        RefreshMaterializedViewRequest {
44            identity: None,
45            id: None,
46            src_version: None,
47            max_rows_per_fragment: None,
48            concurrency: None,
49            intra_applier_concurrency: None,
50            cluster: None,
51            manifest: None,
52        }
53    }
54}
55