/* * 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, #[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, } } }