//! file upload types for the graphql multipart request spec
//!//! used with [`CoreFileObject`](https://docs.infrahub.app) mutations that accept
//! an `Upload` scalar argument.
/// a file to upload via graphql multipart request
#[derive(Debug, Clone)]pubstructFileUpload{/// file name (e.g. `"report.pdf"`)
pubfilename: String,
/// mime type (e.g. `"application/pdf"`)
pubcontent_type: String,
/// raw file bytes
pubdata:Vec<u8>,
}implFileUpload{/// create a new file upload
pubfnnew(filename: impl Into<String>,
content_type: impl Into<String>,
data:Vec<u8>,
)->Self{Self{
filename: filename.into(),
content_type: content_type.into(),
data,}}}