pub struct PriceRecord {
pub ts: Option<Zoned>,
pub source: String,
pub rate: Option<String>,
pub target: String,
}Expand description
Metadata item for one commodity conversion
Fields§
§ts: Option<Zoned>Time of price record
source: StringSource (from) commodity
rate: Option<String>Conversion rate (value in target commodity)
target: StringTarget (to) commodity
Trait Implementations§
Source§impl Clone for PriceRecord
impl Clone for PriceRecord
Source§fn clone(&self) -> PriceRecord
fn clone(&self) -> PriceRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PriceRecord
impl Debug for PriceRecord
Auto Trait Implementations§
impl Freeze for PriceRecord
impl RefUnwindSafe for PriceRecord
impl Send for PriceRecord
impl Sync for PriceRecord
impl Unpin for PriceRecord
impl UnwindSafe for PriceRecord
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