hermes_ebay_buy_feed/models/error.rs
1/*
2 * Item Feed Service
3 *
4 * <span class=\"tablenote\"><b>Note:</b> This is a <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited \" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the <a href=\"api-docs/buy/static/buy-requirements.html\" target=\"_blank\">Buy APIs Requirements</a>.</span><br><br>The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file of the items that have changed within an hour for a specific category, date and marketplace. <p>In addition to the API, there is an open source <a href=\"https://github.com/eBay/FeedSDK \" target=\"_blank\">Feed SDK</a> written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.</p>
5 *
6 * The version of the OpenAPI document: v1_beta.35.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/// Error : This type defines the fields that can be returned in an error.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Error {
17 /// Identifies the type of erro.
18 #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
19 pub category: Option<String>,
20 /// Name for the primary system where the error occurred. This is relevant for application errors.
21 #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
22 pub domain: Option<String>,
23 /// A unique number to identify the error.
24 #[serde(rename = "errorId", skip_serializing_if = "Option::is_none")]
25 pub error_id: Option<i32>,
26 /// An array of request elements most closely associated to the error.
27 #[serde(rename = "inputRefIds", skip_serializing_if = "Option::is_none")]
28 pub input_ref_ids: Option<Vec<String>>,
29 /// A more detailed explanation of the error.
30 #[serde(rename = "longMessage", skip_serializing_if = "Option::is_none")]
31 pub long_message: Option<String>,
32 /// Information on how to correct the problem, in the end user's terms and language where applicable.
33 #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
34 pub message: Option<String>,
35 /// An array of request elements most closely associated to the error.
36 #[serde(rename = "outputRefIds", skip_serializing_if = "Option::is_none")]
37 pub output_ref_ids: Option<Vec<String>>,
38 /// An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.
39 #[serde(rename = "parameters", skip_serializing_if = "Option::is_none")]
40 pub parameters: Option<Vec<models::ErrorParameter>>,
41 /// Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc.
42 #[serde(rename = "subdomain", skip_serializing_if = "Option::is_none")]
43 pub subdomain: Option<String>,
44}
45
46impl Error {
47 /// This type defines the fields that can be returned in an error.
48 pub fn new() -> Error {
49 Error {
50 category: None,
51 domain: None,
52 error_id: None,
53 input_ref_ids: None,
54 long_message: None,
55 message: None,
56 output_ref_ids: None,
57 parameters: None,
58 subdomain: None,
59 }
60 }
61}
62