pub struct SaleReport {
pub total_sales: String,
pub net_sales: String,
pub average_sales: String,
pub total_orders: i32,
pub total_items: i32,
pub total_tax: String,
pub total_shipping: String,
pub total_refunds: i32,
pub total_discount: String,
pub totals_grouped_by: String,
pub totals: HashMap<NaiveDate, Total>,
pub total_customers: i32,
}Fields§
§total_sales: StringGross sales in the period.
net_sales: StringNet sales in the period.
average_sales: StringAverage net daily sales.
total_orders: i32Total of orders placed.
total_items: i32Total of items purchased.
total_tax: StringTotal charged for taxes.
total_shipping: StringTotal charged for shipping.
total_refunds: i32Total of refunded orders.
total_discount: StringTotal of coupons used.
totals_grouped_by: StringGroup type.
totals: HashMap<NaiveDate, Total>Totals.
total_customers: i32Trait Implementations§
Source§impl Clone for SaleReport
impl Clone for SaleReport
Source§fn clone(&self) -> SaleReport
fn clone(&self) -> SaleReport
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 SaleReport
impl Debug for SaleReport
Source§impl<'de> Deserialize<'de> for SaleReport
impl<'de> Deserialize<'de> for SaleReport
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
Auto Trait Implementations§
impl Freeze for SaleReport
impl RefUnwindSafe for SaleReport
impl Send for SaleReport
impl Sync for SaleReport
impl Unpin for SaleReport
impl UnwindSafe for SaleReport
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