amazon_spapi/models/notifications/
get_subscription_by_id_response.rs

1/*
2 * Selling Partner API for Notifications
3 *
4 * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.  For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetSubscriptionByIdResponse : The response schema for the `getSubscriptionById` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetSubscriptionByIdResponse {
17    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18    pub payload: Option<Box<models::notifications::Subscription>>,
19    /// A list of error responses returned when a request is unsuccessful.
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<models::notifications::Error>>,
22}
23
24impl GetSubscriptionByIdResponse {
25    /// The response schema for the `getSubscriptionById` operation.
26    pub fn new() -> GetSubscriptionByIdResponse {
27        GetSubscriptionByIdResponse {
28            payload: None,
29            errors: None,
30        }
31    }
32}
33