pub struct ProductCreate {
pub name: String,
pub price: f64,
pub quantity: u32,
}Expand description
DTOs for Product creation and updates.
Fields§
§name: String§price: f64§quantity: u32Trait Implementations§
Source§impl Clone for ProductCreate
impl Clone for ProductCreate
Source§fn clone(&self) -> ProductCreate
fn clone(&self) -> ProductCreate
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 moreAuto Trait Implementations§
impl Freeze for ProductCreate
impl RefUnwindSafe for ProductCreate
impl Send for ProductCreate
impl Sync for ProductCreate
impl Unpin for ProductCreate
impl UnwindSafe for ProductCreate
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