pub struct CatalogItem {
pub id: String,
pub supplier_id: String,
pub sku: String,
pub description: String,
pub unit_price: f64,
pub currency: String,
pub lead_time_days: u32,
pub min_order_qty: f64,
}Fields§
§id: String§supplier_id: String§sku: String§description: String§unit_price: f64§currency: String§lead_time_days: u32§min_order_qty: f64Trait Implementations§
Source§impl Clone for CatalogItem
impl Clone for CatalogItem
Source§fn clone(&self) -> CatalogItem
fn clone(&self) -> CatalogItem
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 CatalogItem
impl Debug for CatalogItem
Source§impl<'de> Deserialize<'de> for CatalogItem
impl<'de> Deserialize<'de> for CatalogItem
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 CatalogItem
impl RefUnwindSafe for CatalogItem
impl Send for CatalogItem
impl Sync for CatalogItem
impl Unpin for CatalogItem
impl UnsafeUnpin for CatalogItem
impl UnwindSafe for CatalogItem
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