pub struct Lot<'i, Deco: Decoration> {
pub price: Option<Deco::Decorated<Exchange<'i>>>,
pub date: Option<NaiveDate>,
pub note: Option<Cow<'i, str>>,
}
Expand description
Lot information is a set of metadata to record the original lot which the commodity is acquired with.
Fields§
§price: Option<Deco::Decorated<Exchange<'i>>>
§date: Option<NaiveDate>
§note: Option<Cow<'i, str>>
Trait Implementations§
Source§impl<'i, Deco: Decoration> Debug for Lot<'i, Deco>
impl<'i, Deco: Decoration> Debug for Lot<'i, Deco>
Source§impl<Deco: Decoration> Default for Lot<'_, Deco>
impl<Deco: Decoration> Default for Lot<'_, Deco>
Source§impl<'i, Deco: Decoration> PartialEq for Lot<'i, Deco>
impl<'i, Deco: Decoration> PartialEq for Lot<'i, Deco>
impl<'i, Deco: Decoration> Eq for Lot<'i, Deco>
Auto Trait Implementations§
impl<'i, Deco> Freeze for Lot<'i, Deco>
impl<'i, Deco> RefUnwindSafe for Lot<'i, Deco>
impl<'i, Deco> Send for Lot<'i, Deco>
impl<'i, Deco> Sync for Lot<'i, Deco>
impl<'i, Deco> Unpin for Lot<'i, Deco>
impl<'i, Deco> UnwindSafe for Lot<'i, Deco>
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