Skip to main content

oxsearch_sql/generated/
mod.rs

1// Generated by `cargo run -p xtask -- generate` from elastic/elasticsearch-specification 9.5 at
2// 84bf510a907bae62ffe29af35f516af287a79eab. Don't edit it: change the generator.
3
4#![allow(
5    missing_docs,
6    non_camel_case_types,
7    non_snake_case,
8    deprecated,
9    dead_code,
10    unused_imports,
11    clippy::all,
12    rustdoc::all
13)]
14
15pub mod clear_cursor;
16pub mod delete_async;
17pub mod get_async;
18pub mod get_async_status;
19pub mod query;
20pub mod translate;
21
22#[derive(Clone, Debug, PartialEq, ::serde::Serialize, ::serde::Deserialize)]
23#[non_exhaustive]
24pub struct Column {
25    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
26    pub name: ::core::option::Option<::oxsearch_core::Name>,
27    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
28    pub r#type: ::core::option::Option<::std::string::String>,
29}
30
31impl Column {
32    /// A `Column` with its required properties set.
33    pub fn new(
34        name: impl ::core::convert::Into<::oxsearch_core::Name>,
35        r#type: impl ::core::convert::Into<::std::string::String>,
36    ) -> Self {
37        Self {
38            name: ::core::option::Option::Some(name.into()),
39            r#type: ::core::option::Option::Some(r#type.into()),
40        }
41    }
42}
43
44impl Column {}
45
46pub type Row = ::std::vec::Vec<::serde_json::Value>;