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
sourceimpl Clone for OrderMetricsInterval
impl Clone for OrderMetricsInterval
sourcefn clone(&self) -> OrderMetricsInterval
fn clone(&self) -> OrderMetricsInterval
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OrderMetricsInterval
impl Debug for OrderMetricsInterval
sourceimpl Default for OrderMetricsInterval
impl Default for OrderMetricsInterval
sourcefn default() -> OrderMetricsInterval
fn default() -> OrderMetricsInterval
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderMetricsInterval
impl<'de> Deserialize<'de> for OrderMetricsInterval
sourcefn 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
sourceimpl PartialEq<OrderMetricsInterval> for OrderMetricsInterval
impl PartialEq<OrderMetricsInterval> for OrderMetricsInterval
sourcefn eq(&self, other: &OrderMetricsInterval) -> bool
fn eq(&self, other: &OrderMetricsInterval) -> bool
sourceimpl Serialize for OrderMetricsInterval
impl Serialize for OrderMetricsInterval
impl StructuralPartialEq for OrderMetricsInterval
Auto Trait Implementations
impl RefUnwindSafe for OrderMetricsInterval
impl Send for OrderMetricsInterval
impl Sync for OrderMetricsInterval
impl Unpin for OrderMetricsInterval
impl UnwindSafe for OrderMetricsInterval
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more