Skip to main content

hermes_ebay_sell_inventory/models/
version.rs

1/*
2 * Inventory API
3 *
4 * The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model.
5 *
6 * The version of the OpenAPI document: 1.18.4
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Version : This type is used to show the version number and instance of the service or API.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Version {
17    #[serde(rename = "instance", skip_serializing_if = "Option::is_none")]
18    pub instance: Option<Box<models::Version>>,
19    /// The version number of the service or API.
20    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
21    pub version: Option<String>,
22}
23
24impl Version {
25    /// This type is used to show the version number and instance of the service or API.
26    pub fn new() -> Version {
27        Version {
28            instance: None,
29            version: None,
30        }
31    }
32}
33