// 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 SplitResult {
    /// The name of the subdocument
    pub name: String,
    /// The pages of the subdocument (1-indexed)
    pub pages: Vec<i64>,
}
impl SplitResult {
    /// Construct a new `SplitResult` with the required fields set.
    #[allow(deprecated)]
    pub fn new(name: impl Into<String>, pages: Vec<i64>) -> Self {
        Self {
            name: name.into(),
            pages,
        }
    }
}
