pub struct UnitPrice {
pub value: Option<f64>,
pub unit: Option<String>,
}Fields§
§value: Option<f64>§unit: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitPrice
impl<'de> Deserialize<'de> for UnitPrice
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 UnitPrice
impl RefUnwindSafe for UnitPrice
impl Send for UnitPrice
impl Sync for UnitPrice
impl Unpin for UnitPrice
impl UnsafeUnpin for UnitPrice
impl UnwindSafe for UnitPrice
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