/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ValidatePostRequest {
    /// Post text content
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    /// Target platforms (same format as POST /v1/posts)
    #[serde(rename = "platforms")]
    pub platforms: Vec<models::ValidatePostRequestPlatformsInner>,
    /// Root media items shared across platforms
    #[serde(rename = "mediaItems", skip_serializing_if = "Option::is_none")]
    pub media_items: Option<Vec<models::MediaItem>>,
}

impl ValidatePostRequest {
    pub fn new(platforms: Vec<models::ValidatePostRequestPlatformsInner>) -> ValidatePostRequest {
        ValidatePostRequest {
            content: None,
            platforms,
            media_items: None,
        }
    }
}
