hermes_ebay_sell_metadata/models/error_parameter.rs
1/*
2 * Metadata API
3 *
4 * The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.
5 *
6 * The version of the OpenAPI document: v1.11.1
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ErrorParameter : Container for a error parameter.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ErrorParameter {
17 /// Name of the entity that threw the error.
18 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19 pub name: Option<String>,
20 /// A description of the error.
21 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22 pub value: Option<String>,
23}
24
25impl ErrorParameter {
26 /// Container for a error parameter.
27 pub fn new() -> ErrorParameter {
28 ErrorParameter {
29 name: None,
30 value: None,
31 }
32 }
33}
34