// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowTableExplain {
    pub table_id: String,
    /// Defaults to ``.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub snapshot_file_id: Option<String>,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub selected_columns: Option<Vec<String>>,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub filters: Option<Vec<WorkflowTableFilterRule>>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub search: Option<WorkflowTableSearchRequest>,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub sort: Option<Vec<WorkflowTableSortRule>>,
    /// Defaults to `0`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub offset: Option<i64>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub limit: Option<i64>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub distinct: Option<WorkflowTableDistinctRequest>,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub group_by: Option<Vec<String>>,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub aggregations: Option<Vec<WorkflowTableAggregationRequest>>,
}
impl WorkflowTableExplain {
    /// Construct a new `WorkflowTableExplain` with the required fields set.
    #[allow(deprecated)]
    pub fn new(table_id: impl Into<String>) -> Self {
        Self {
            table_id: table_id.into(),
            snapshot_file_id: Default::default(),
            selected_columns: Default::default(),
            filters: Default::default(),
            search: Default::default(),
            sort: Default::default(),
            offset: Default::default(),
            limit: Default::default(),
            distinct: Default::default(),
            group_by: Default::default(),
            aggregations: Default::default(),
        }
    }
}
