oxsearch-sql 0.2.0

SQL for oxsearch, generated from the Elasticsearch specification: queries, cursors and their translation into search requests
Documentation
// Generated by `cargo run -p xtask -- generate` from elastic/elasticsearch-specification 9.5 at
// 84bf510a907bae62ffe29af35f516af287a79eab. Don't edit it: change the generator.

#![allow(
    missing_docs,
    non_camel_case_types,
    non_snake_case,
    deprecated,
    dead_code,
    unused_imports,
    clippy::all,
    rustdoc::all
)]

pub mod clear_cursor;
pub mod delete_async;
pub mod get_async;
pub mod get_async_status;
pub mod query;
pub mod translate;

#[derive(Clone, Debug, PartialEq, ::serde::Serialize, ::serde::Deserialize)]
#[non_exhaustive]
pub struct Column {
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub name: ::core::option::Option<::oxsearch_core::Name>,
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub r#type: ::core::option::Option<::std::string::String>,
}

impl Column {
    /// A `Column` with its required properties set.
    pub fn new(
        name: impl ::core::convert::Into<::oxsearch_core::Name>,
        r#type: impl ::core::convert::Into<::std::string::String>,
    ) -> Self {
        Self {
            name: ::core::option::Option::Some(name.into()),
            r#type: ::core::option::Option::Some(r#type.into()),
        }
    }
}

impl Column {}

pub type Row = ::std::vec::Vec<::serde_json::Value>;