pub struct CommerceOverview {
pub aov: Option<f64>,
pub available: Option<bool>,
pub orders: Option<i32>,
pub reason: Option<String>,
pub revenue: Option<f64>,
pub source: Option<String>,
}Fields§
§aov: Option<f64>AOV is average order value — Revenue/Orders, rounded to two places. Zero when there were no orders.
available: Option<bool>Available is false when the product-event table could not be read — the lens is reported missing rather than as zeros that look like no sales.
orders: Option<i32>Orders is how many order_completed events landed in the window.
reason: Option<String>Reason says why the lens is unavailable. Omitted when it is available.
revenue: Option<f64>Revenue is the total those orders carried, in the events’ own currency unit.
source: Option<String>Source is the warehouse table the lens read.
Implementations§
Source§impl CommerceOverview
impl CommerceOverview
pub fn new() -> CommerceOverview
Trait Implementations§
Source§impl Clone for CommerceOverview
impl Clone for CommerceOverview
Source§fn clone(&self) -> CommerceOverview
fn clone(&self) -> CommerceOverview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommerceOverview
impl Debug for CommerceOverview
Source§impl Default for CommerceOverview
impl Default for CommerceOverview
Source§fn default() -> CommerceOverview
fn default() -> CommerceOverview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommerceOverview
impl<'de> Deserialize<'de> for CommerceOverview
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 CommerceOverview
impl PartialEq for CommerceOverview
Source§impl Serialize for CommerceOverview
impl Serialize for CommerceOverview
impl StructuralPartialEq for CommerceOverview
Auto Trait Implementations§
impl Freeze for CommerceOverview
impl RefUnwindSafe for CommerceOverview
impl Send for CommerceOverview
impl Sync for CommerceOverview
impl Unpin for CommerceOverview
impl UnsafeUnpin for CommerceOverview
impl UnwindSafe for CommerceOverview
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