Updated models

This commit is contained in:
kdeng00
2024-04-08 12:35:52 -04:00
parent 4cbe4ca41d
commit 3fafea1f9f
7 changed files with 119 additions and 34 deletions
+13 -4
View File
@@ -1,10 +1,19 @@
use std::default::Default;
use serde::{Deserialize, Serialize};
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct UploadForm {
pub url: String,
pub filepath: String,
pub url: Option<String>,
pub filepath: Option<String>,
}
// }
impl Default for UploadForm {
fn default() -> Self {
UploadForm {
url: None,
filepath: None,
}
}
}