pub struct LineItem<'a> {Show 16 fields
pub l_orderkey: i64,
pub l_partkey: i64,
pub l_suppkey: i64,
pub l_linenumber: i32,
pub l_quantity: i64,
pub l_extendedprice: TPCHDecimal,
pub l_discount: TPCHDecimal,
pub l_tax: TPCHDecimal,
pub l_returnflag: &'a str,
pub l_linestatus: &'static str,
pub l_shipdate: TPCHDate,
pub l_commitdate: TPCHDate,
pub l_receiptdate: TPCHDate,
pub l_shipinstruct: &'a str,
pub l_shipmode: &'a str,
pub l_comment: &'a str,
}Expand description
The LINEITEM table
The Display trait is implemented to format the line item data as a string in the default TPC-H ‘tbl’ format.
Example
1|156|4|1|17|17954.55|0.04|0.02|N|O|1996-03-13|1996-02-12|1996-03-22|DELIVER IN PERSON|TRUCK|egular courts above the|
1|68|9|2|36|34850.16|0.09|0.06|N|O|1996-04-12|1996-02-28|1996-04-20|TAKE BACK RETURN|MAIL|ly final dependencies: slyly bold |Fields§
§l_orderkey: i64Foreign key to ORDERS
l_partkey: i64Foreign key to PART
l_suppkey: i64Foreign key to SUPPLIER
l_linenumber: i32Line item number within order
l_quantity: i64Quantity ordered
l_extendedprice: TPCHDecimalExtended price (l_quantity * p_retailprice)
l_discount: TPCHDecimalDiscount percentage
l_tax: TPCHDecimalTax percentage
l_returnflag: &'a strReturn flag (R=returned, A=accepted, null=pending)
l_linestatus: &'static strLine status (O=ordered, F=fulfilled)
l_shipdate: TPCHDateDate shipped
l_commitdate: TPCHDateDate committed to ship
l_receiptdate: TPCHDateDate received
l_shipinstruct: &'a strShipping instructions
l_shipmode: &'a strShipping mode
l_comment: &'a strVariable length comment
Trait Implementations§
impl<'a> StructuralPartialEq for LineItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for LineItem<'a>
impl<'a> RefUnwindSafe for LineItem<'a>
impl<'a> Send for LineItem<'a>
impl<'a> Sync for LineItem<'a>
impl<'a> Unpin for LineItem<'a>
impl<'a> UnwindSafe for LineItem<'a>
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