// 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 PartitionChunk {
    /// The partition key value for this chunk
    pub key: String,
    /// The pages assigned to this partition chunk (1-indexed)
    ///
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub pages: Option<Vec<i64>>,
}
impl PartitionChunk {
    /// Construct a new `PartitionChunk` with the required fields set.
    #[allow(deprecated)]
    pub fn new(key: impl Into<String>) -> Self {
        Self {
            key: key.into(),
            pages: Default::default(),
        }
    }
}
