pub struct Price {
pub commodity: *const Commodity,
pub datetime: NaiveDateTime,
pub price: Amount,
}
Expand description
Represents a price of a commodity. i.e. (1) EUR = 1.20 AUD
TODO: Compare with price_point_t, which does not have the commodity_index, if one type would be enough.
Fields§
§commodity: *const Commodity
The commodity being priced.
datetime: NaiveDateTime
Point in time at which the price is valid.
price: Amount
Price of the commodity. i.e. 1.20 AUD
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl !Send for Price
impl !Sync for Price
impl Unpin for Price
impl UnwindSafe for Price
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