pub struct Product {
pub name: Option<String>,
pub price_label: Option<String>,
pub price: Option<f64>,
pub vat_rate: Option<f64>,
pub single_vat_amount: Option<f64>,
pub price_with_vat: Option<f64>,
pub vat_amount: Option<f64>,
pub quantity: Option<i64>,
pub total_price: Option<f64>,
pub total_with_vat: Option<f64>,
}Expand description
Purchase product.
Fields§
§name: Option<String>Product name.
price_label: Option<String>Product description.
price: Option<f64>Product price.
Constraints:
- format:
decimal
vat_rate: Option<f64>VAT percentage.
Constraints:
- format:
decimal
single_vat_amount: Option<f64>VAT amount for a single product.
Constraints:
- format:
decimal
price_with_vat: Option<f64>Product price incl. VAT.
Constraints:
- format:
decimal
vat_amount: Option<f64>VAT amount.
Constraints:
- format:
decimal
quantity: Option<i64>Product quantity.
total_price: Option<f64>Quantity x product price.
Constraints:
- format:
decimal
total_with_vat: Option<f64>Total price incl. VAT.
Constraints:
- format:
decimal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Product
impl<'de> Deserialize<'de> for Product
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more