Moved server, added backend structs and added ui elements.
This commit is contained in:
1 parent
25a47bbce9
commit
0d5fef7fbb
19 files changed
+3355
-123
No files matched your search
@@ -0,0 +1,14 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::models::origin::Origin;
|
||||
use crate::models::variant::Variant;
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||
pub struct Article {
|
||||
pub id: usize,
|
||||
pub name: String,
|
||||
pub bio: bool,
|
||||
pub origin: Origin,
|
||||
pub description: Option<String>,
|
||||
pub ingredients: Option<String>,
|
||||
pub variants: Vec<Variant>,
|
||||
}
|
||||
Reference in new issue
Block a user