Struct LineItem

Source
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: i64

Foreign key to ORDERS

§l_partkey: i64

Foreign key to PART

§l_suppkey: i64

Foreign key to SUPPLIER

§l_linenumber: i32

Line item number within order

§l_quantity: i64

Quantity ordered

§l_extendedprice: TPCHDecimal

Extended price (l_quantity * p_retailprice)

§l_discount: TPCHDecimal

Discount percentage

§l_tax: TPCHDecimal

Tax percentage

§l_returnflag: &'a str

Return flag (R=returned, A=accepted, null=pending)

§l_linestatus: &'static str

Line status (O=ordered, F=fulfilled)

§l_shipdate: TPCHDate

Date shipped

§l_commitdate: TPCHDate

Date committed to ship

§l_receiptdate: TPCHDate

Date received

§l_shipinstruct: &'a str

Shipping instructions

§l_shipmode: &'a str

Shipping mode

§l_comment: &'a str

Variable length comment

Trait Implementations§

Source§

impl<'a> Clone for LineItem<'a>

Source§

fn clone(&self) -> LineItem<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for LineItem<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LineItem<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for LineItem<'a>

Source§

fn eq(&self, other: &LineItem<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.