Skip to main content

amazon_spapi/models/invoices_2024_06_19/
attribute_option.rs

1/*
2 * The Selling Partner API for Invoices.
3 *
4 * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
5 *
6 * The version of the OpenAPI document: 2024-06-19
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AttributeOption : The definition of the attribute option.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttributeOption {
17    /// The description of the attribute value.
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    /// The possible values for the attribute option.
21    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22    pub value: Option<String>,
23}
24
25impl AttributeOption {
26    /// The definition of the attribute option.
27    pub fn new() -> AttributeOption {
28        AttributeOption {
29            description: None,
30            value: None,
31        }
32    }
33}
34