pub struct NormalPrice {
pub price: Option<f64>,
pub unit: Option<String>,
pub unit_price: Option<UnitPrice>,
pub is_approximate: bool,
}Fields§
§price: Option<f64>§unit: Option<String>§unit_price: Option<UnitPrice>Comparison price, e.g. per kg, which is what makes weight-priced items comparable at all.
is_approximate: boolTrait Implementations§
Source§impl Clone for NormalPrice
impl Clone for NormalPrice
Source§fn clone(&self) -> NormalPrice
fn clone(&self) -> NormalPrice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalPrice
impl Debug for NormalPrice
Source§impl<'de> Deserialize<'de> for NormalPrice
impl<'de> Deserialize<'de> for NormalPrice
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 NormalPrice
impl RefUnwindSafe for NormalPrice
impl Send for NormalPrice
impl Sync for NormalPrice
impl Unpin for NormalPrice
impl UnsafeUnpin for NormalPrice
impl UnwindSafe for NormalPrice
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