use serde::Serialize; /// Information about an uploaded file. #[derive(Debug, Clone, Serialize)] #[serde(rename_all = "camelCase")] pub struct UploadedFile { filename: String, s3_key: String, s3_url: String, } impl UploadedFile { /// Construct new uploaded file info container. pub fn new( filename: impl Into, s3_key: impl Into, s3_url: impl Into, ) -> Self { Self { filename: filename.into(), s3_key: s3_key.into(), s3_url: s3_url.into(), } } }