diff options
Diffstat (limited to 'crates/rocie-client/src/models/product_amount.rs')
| -rw-r--r-- | crates/rocie-client/src/models/product_amount.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/crates/rocie-client/src/models/product_amount.rs b/crates/rocie-client/src/models/product_amount.rs new file mode 100644 index 0000000..6f1b436 --- /dev/null +++ b/crates/rocie-client/src/models/product_amount.rs @@ -0,0 +1,30 @@ +/* + * rocie-server + * + * An enterprise grocery management system + * + * The version of the OpenAPI document: 0.1.0 + * Contact: benedikt.peetz@b-peetz.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProductAmount { + #[serde(rename = "amount")] + pub amount: Box<models::UnitAmount>, + #[serde(rename = "product_id")] + pub product_id: uuid::Uuid, +} + +impl ProductAmount { + pub fn new(amount: models::UnitAmount, product_id: uuid::Uuid) -> ProductAmount { + ProductAmount { + amount: Box::new(amount), + product_id, + } + } +} + |
