app_store_server_library/primitives/
send_attempt_item.rs

1use crate::primitives::send_attempt_result::SendAttemptResult;
2use chrono::{DateTime, Utc};
3use serde::{Deserialize, Serialize};
4use serde_with::formats::Flexible;
5use serde_with::TimestampMilliSeconds;
6/// The success or error information and the date the App Store server records when it attempts to send a server notification to your server.
7///
8/// [sendAttemptItem](https://developer.apple.com/documentation/appstoreserverapi/sendattemptitem)
9#[serde_with::serde_as]
10#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq)]
11pub struct SendAttemptItem {
12    /// The date the App Store server attempts to send a notification.
13    ///
14    /// [attemptDate](https://developer.apple.com/documentation/appstoreservernotifications/attemptdate)
15    #[serde(rename = "attemptDate")]
16    #[serde_as(as = "Option<TimestampMilliSeconds<String, Flexible>>")]
17    pub attempt_date: Option<DateTime<Utc>>,
18
19    /// The success or error information the App Store server records when it attempts to send an App Store server notification to your server.
20    ///
21    /// [sendAttemptResult](https://developer.apple.com/documentation/appstoreserverapi/sendattemptresult)
22    #[serde(rename = "sendAttemptResult")]
23    pub send_attempt_result: Option<SendAttemptResult>,
24}