pub struct CostData {
pub number_per: Option<String>,
pub number_total: Option<String>,
pub currency: Option<String>,
pub date: Option<String>,
pub label: Option<String>,
pub merge: bool,
}Expand description
Cost data for serialization.
Represents cost specifications like {100 USD} or {100 USD, 2024-01-01, "lot1"}.
Fields§
§number_per: Option<String>Per-unit cost number.
number_total: Option<String>Total cost number.
currency: Option<String>Cost currency.
date: Option<String>Acquisition date.
label: Option<String>Lot label.
merge: boolMerge lots flag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostData
impl<'de> Deserialize<'de> for CostData
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 CostData
impl RefUnwindSafe for CostData
impl Send for CostData
impl Sync for CostData
impl Unpin for CostData
impl UnsafeUnpin for CostData
impl UnwindSafe for CostData
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