Skip to main content

app_store_server_library/models/
header_position.rs

1use serde::{Deserialize, Serialize};
2
3/// The position of the header relative to the body and image in a retention message.
4///
5/// [headerPosition](https://developer.apple.com/documentation/retentionmessaging/headerposition)
6#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
7pub enum HeaderPosition {
8    /// The header appears above the body text.
9    #[serde(rename = "ABOVE_BODY")]
10    AboveBody,
11
12    /// The header appears above the image.
13    #[serde(rename = "ABOVE_IMAGE")]
14    AboveImage,
15
16    /// A value the App Store sent that this version of the
17    /// library does not support, preserved as received.
18    #[serde(untagged)]
19    NotSupported(String),
20}