app_store_server_library/primitives/advanced_commerce/
descriptors.rs

1use serde::{Deserialize, Serialize};
2
3/// The description and display name of the subscription to migrate to that you manage.
4///
5/// [Descriptors](https://developer.apple.com/documentation/advancedcommerceapi/descriptors)
6#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
7#[serde(rename_all = "camelCase")]
8pub struct Descriptors {
9    /// A string you provide that describes a SKU.
10    ///
11    /// [Description](https://developer.apple.com/documentation/appstoreserverapi/description)
12    pub description: String,
13
14    /// A string with a product name that you can localize and is suitable for display to customers.
15    ///
16    /// [DisplayName](https://developer.apple.com/documentation/appstoreserverapi/displayname)
17    pub display_name: String,
18}
19
20impl Descriptors {
21    pub fn new(description: String, display_name: String) -> Self {
22        Self {
23            description,
24            display_name,
25        }
26    }
27}