// 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 EditResult {
    /// Filled form fields (positions, descriptions, and filled values).
    pub form_data: Vec<FormField>,
    /// PDF with the filled form values rendered in.
    pub filled_document: MimeData,
}
impl EditResult {
    /// Construct a new `EditResult` with the required fields set.
    #[allow(deprecated)]
    pub fn new<D: Into<crate::MimeData>>(form_data: Vec<FormField>, filled_document: D) -> Self {
        Self {
            form_data,
            filled_document: filled_document.into(),
        }
    }
}
