add: product uploads
This commit is contained in:
parent
292d302304
commit
3b5b0ce1a1
8 changed files with 27 additions and 7 deletions
|
@ -14,6 +14,8 @@ pub struct Product {
|
|||
pub dislikes: isize,
|
||||
pub product_type: ProductType,
|
||||
pub price: ProductPrice,
|
||||
/// Optional uploads to accompany the product title and description. Maximum of 4.
|
||||
pub uploads: Vec<usize>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
@ -80,6 +82,7 @@ impl Product {
|
|||
dislikes: 0,
|
||||
product_type: r#type,
|
||||
price,
|
||||
uploads: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue