pub struct Line {
pub item_id: String,
pub name: String,
pub quantity: u32,
pub amount: i64,
pub note: String,
}Expand description
A line of the cart or a quote.
Fields§
§item_id: StringThe item’s id.
name: StringThe item’s name.
quantity: u32How many.
amount: i64The line’s total, minor units.
note: StringThe note for the merchant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Forget for Line
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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