// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// File reference for a handle input.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FileHandleInput {
    /// Defaults to `file`.
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub type_: Option<String>,
    pub document: ResultFileRef,
}
impl FileHandleInput {
    /// Construct a new `FileHandleInput` with the required fields set.
    #[allow(deprecated)]
    pub fn new(document: ResultFileRef) -> Self {
        Self {
            type_: Default::default(),
            document,
        }
    }
}
