pub struct SimpleItemSchema {
pub code: String,
pub quantity: u32,
}Fields§
§code: StringItem code.
quantity: u32Item quantity.
Implementations§
Source§impl SimpleItemSchema
impl SimpleItemSchema
pub fn new(code: String, quantity: u32) -> SimpleItemSchema
Trait Implementations§
Source§impl Clone for SimpleItemSchema
impl Clone for SimpleItemSchema
Source§fn clone(&self) -> SimpleItemSchema
fn clone(&self) -> SimpleItemSchema
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 moreSource§impl Debug for SimpleItemSchema
impl Debug for SimpleItemSchema
Source§impl Default for SimpleItemSchema
impl Default for SimpleItemSchema
Source§fn default() -> SimpleItemSchema
fn default() -> SimpleItemSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpleItemSchema
impl<'de> Deserialize<'de> for SimpleItemSchema
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 SimpleItemSchema
impl PartialEq for SimpleItemSchema
Source§impl Serialize for SimpleItemSchema
impl Serialize for SimpleItemSchema
impl StructuralPartialEq for SimpleItemSchema
Auto Trait Implementations§
impl Freeze for SimpleItemSchema
impl RefUnwindSafe for SimpleItemSchema
impl Send for SimpleItemSchema
impl Sync for SimpleItemSchema
impl Unpin for SimpleItemSchema
impl UnwindSafe for SimpleItemSchema
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