app-store-server-library 6.0.0

The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API
Documentation
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::models::image_size::ImageSize;
use crate::models::image_state::ImageState;

/// An image identifier and state information for an image.
///
/// [GetImageListResponseItem](https://developer.apple.com/documentation/retentionmessaging/getimagelistresponseitem)
#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
pub struct GetImageListResponseItem {
    /// The identifier of the image.
    ///
    /// [imageIdentifier](https://developer.apple.com/documentation/retentionmessaging/imageidentifier)
    #[serde(rename = "imageIdentifier")]
    pub image_identifier: Option<Uuid>,

    /// The current state of the image.
    ///
    /// [imageState](https://developer.apple.com/documentation/retentionmessaging/imagestate)
    #[serde(rename = "imageState")]
    pub image_state: Option<ImageState>,

    /// The size of the image.
    ///
    /// [imageSize](https://developer.apple.com/documentation/retentionmessaging/imagesize)
    #[serde(rename = "imageSize")]
    pub image_size: Option<ImageSize>,
}