pub struct OrderMetricsInterval {
pub interval: String,
pub unit_count: i32,
pub order_item_count: i32,
pub order_count: i32,
pub average_unit_price: Box<Money>,
pub total_sales: Box<Money>,
}Expand description
OrderMetricsInterval : Contains order metrics.
Fields§
§interval: StringThe interval of time based on requested granularity (ex. Hour, Day, etc.) If this is the first or the last interval from the list, it might contain incomplete data if the requested interval doesn’t align with the requested granularity (ex. request interval 2018-09-01T02:00:00Z–2018-09-04T19:00:00Z and granularity day will result in Sept 1st UTC day and Sept 4th UTC days having partial data).
unit_count: i32The number of units in orders based on the specified filters.
order_item_count: i32The number of order items based on the specified filters.
order_count: i32The number of orders based on the specified filters.
average_unit_price: Box<Money>§total_sales: Box<Money>Implementations§
Trait Implementations§
Source§impl Clone for OrderMetricsInterval
impl Clone for OrderMetricsInterval
Source§fn clone(&self) -> OrderMetricsInterval
fn clone(&self) -> OrderMetricsInterval
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 OrderMetricsInterval
impl Debug for OrderMetricsInterval
Source§impl Default for OrderMetricsInterval
impl Default for OrderMetricsInterval
Source§fn default() -> OrderMetricsInterval
fn default() -> OrderMetricsInterval
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderMetricsInterval
impl<'de> Deserialize<'de> for OrderMetricsInterval
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 OrderMetricsInterval
impl PartialEq for OrderMetricsInterval
Source§impl Serialize for OrderMetricsInterval
impl Serialize for OrderMetricsInterval
impl StructuralPartialEq for OrderMetricsInterval
Auto Trait Implementations§
impl Freeze for OrderMetricsInterval
impl RefUnwindSafe for OrderMetricsInterval
impl Send for OrderMetricsInterval
impl Sync for OrderMetricsInterval
impl Unpin for OrderMetricsInterval
impl UnwindSafe for OrderMetricsInterval
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