pub struct Commodity {
pub date: NaiveDate,
pub name: CommodityName,
pub meta: Metadata,
}Expand description
Declares a commodity on a given date.
Fields§
§date: NaiveDateDate of the declaration.
name: CommodityNameDeclared commodity name.
meta: MetadataMetadata attached to the directive.
Trait Implementations§
impl StructuralPartialEq for Commodity
Auto Trait Implementations§
impl Freeze for Commodity
impl RefUnwindSafe for Commodity
impl Send for Commodity
impl Sync for Commodity
impl Unpin for Commodity
impl UnsafeUnpin for Commodity
impl UnwindSafe for Commodity
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