amazon_spapi/models/messaging/messaging_action.rs
1/*
2 * Selling Partner API for Messaging
3 *
4 * With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
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/// MessagingAction : A simple object containing the name of the template.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MessagingAction {
17 /// The name of the template.
18 #[serde(rename = "name")]
19 pub name: String,
20}
21
22impl MessagingAction {
23 /// A simple object containing the name of the template.
24 pub fn new(name: String) -> MessagingAction {
25 MessagingAction {
26 name,
27 }
28 }
29}
30