/*
 * 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 PinterestPlatformData {
    /// Pin title. Defaults to first line of content or \"Pin\". Must be ≤ 100 characters.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Target Pinterest board ID. If omitted, the first available board is used.
    #[serde(rename = "boardId", skip_serializing_if = "Option::is_none")]
    pub board_id: Option<String>,
    /// Destination link (pin URL)
    #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
    pub link: Option<String>,
    /// Optional cover image for video pins
    #[serde(rename = "coverImageUrl", skip_serializing_if = "Option::is_none")]
    pub cover_image_url: Option<String>,
    /// Optional key frame time in seconds for derived video cover
    #[serde(
        rename = "coverImageKeyFrameTime",
        skip_serializing_if = "Option::is_none"
    )]
    pub cover_image_key_frame_time: Option<i32>,
}

impl PinterestPlatformData {
    pub fn new() -> PinterestPlatformData {
        PinterestPlatformData {
            title: None,
            board_id: None,
            link: None,
            cover_image_url: None,
            cover_image_key_frame_time: None,
        }
    }
}
