hermes_ebay_sell_analytics/models/record.rs
1/*
2 * Analytics API
3 *
4 * The <i>Analytics API</i> provides data and information about a seller and their eBay business. <br><br>The resources and methods in this API let sellers review information on their listing performance, metrics on their customer service performance, and details on their eBay seller performance rating. <br><br>The three resources in the Analytics API provide the following data and information: <ul><li><b>Customer Service Metric</b> – Returns benchmark data and a metric rating pertaining to a seller's customer service performance as compared to other seller's in the same peer group.</li> <li><b>Traffic Report</b> – Returns data and information that shows how buyers are engaging with a seller's listings.</li> <li><b>Seller Standards Profile</b> – Returns information pertaining to a seller's profile rating.</li></ul> Sellers can use the data and information returned by the various Analytics API methods to determine where they can make improvements to increase sales and how they might improve their seller status as viewed by eBay buyers. <br><br>For details on using this API, see <a href=\"/api-docs/sell/static/performance/analyzing-performance.html\" title=\"Selling Integration Guide\">Analyzing seller performance</a>.
5 *
6 * The version of the OpenAPI document: 1.3.2
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Record : Type that defines the fields of the individual record of the report.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Record {
17 /// A list where each element contains either the string <code>DAY</code> (if the <b>dimension</b> is <code>DAY</code>), or the listing ID for which the record's metric data is computed. A second array member, <b>applicable</b>, is always <code>true</code> for dimension values.
18 #[serde(rename = "dimensionValues", skip_serializing_if = "Option::is_none")]
19 pub dimension_values: Option<Vec<models::Value>>,
20 /// A list where each element contains a <b>value</b> field that indicates the record's value for the metric. Each element also contains an <b>applicable</b> field that indicates the veracity of the computed <b>value</b>. <br><br>Note that there are no metric names or IDs associated with the values returned in this array. The metadata to which these values relate can be found in the key values in <b>metadataKeys</b>. The order of the metric values in this array equals the order of the key values in <b>metadataHeader</b>.
21 #[serde(rename = "metricValues", skip_serializing_if = "Option::is_none")]
22 pub metric_values: Option<Vec<models::Value>>,
23}
24
25impl Record {
26 /// Type that defines the fields of the individual record of the report.
27 pub fn new() -> Record {
28 Record {
29 dimension_values: None,
30 metric_values: None,
31 }
32 }
33}
34