// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Public create-edit-template request body.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateEditTemplateRequest {
    /// Name of the template.
    pub name: String,
    /// The PDF document to use as the empty template.
    pub document: MimeData,
    /// Form fields to attach to the template.
    pub form_fields: Vec<FormField>,
}
impl CreateEditTemplateRequest {
    /// Construct a new `CreateEditTemplateRequest` with the required fields set.
    #[allow(deprecated)]
    pub fn new<D: Into<crate::MimeData>>(
        name: impl Into<String>,
        document: D,
        form_fields: Vec<FormField>,
    ) -> Self {
        Self {
            name: name.into(),
            document: document.into(),
            form_fields,
        }
    }
}
