pub struct MasterPart {
pub ven_code: String,
pub part_number: String,
pub sku: String,
pub total_qty: Option<i32>,
}Expand description
CSV Structs Provides the structures for a part from the Master csv list
Fields§
§ven_code: String§part_number: String§sku: String§total_qty: Option<i32>Implementations§
Source§impl MasterPart
impl MasterPart
Sourcepub fn update_qty(&mut self, qty: i32)
pub fn update_qty(&mut self, qty: i32)
Updates total_qty with a supplied quantity, mutating the instance in place
Trait Implementations§
Source§impl Debug for MasterPart
impl Debug for MasterPart
Source§impl<'de> Deserialize<'de> for MasterPart
impl<'de> Deserialize<'de> for MasterPart
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
Source§impl PartialEq for MasterPart
impl PartialEq for MasterPart
Source§impl Serialize for MasterPart
impl Serialize for MasterPart
impl StructuralPartialEq for MasterPart
Auto Trait Implementations§
impl Freeze for MasterPart
impl RefUnwindSafe for MasterPart
impl Send for MasterPart
impl Sync for MasterPart
impl Unpin for MasterPart
impl UnwindSafe for MasterPart
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