app_store_server_library/models/message_state.rs
1use serde::{Deserialize, Serialize};
2
3/// The approval state of the message.
4///
5/// [messageState](https://developer.apple.com/documentation/retentionmessaging/messagestate)
6#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
7pub enum MessageState {
8 #[serde(rename = "PENDING")]
9 Pending,
10 #[serde(rename = "APPROVED")]
11 Approved,
12 #[serde(rename = "REJECTED")]
13 Rejected,
14
15 /// A value the App Store sent that this version of the
16 /// library does not support, preserved as received.
17 #[serde(untagged)]
18 NotSupported(String),
19}