late 0.0.808

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api  Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal.  Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
 *
 * 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>,
    /// Target section inside the board. Optional; the pin lands on the board itself when omitted. Pinterest rejects the pin if the section does not belong to boardId, so send both together.
    #[serde(rename = "boardSectionId", skip_serializing_if = "Option::is_none")]
    pub board_section_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>,
    /// When true, the Pin is created with Pinterest's AI_MODIFIED disclosure (ai_disclosures), which shows an \"AI modified\" label. Applies to image and video Pins. Pinterest offers no \"not AI\" value, so false simply omits the disclosure. Pinterest may still label a Pin on its own detection.
    #[serde(rename = "isAiGenerated", skip_serializing_if = "Option::is_none")]
    pub is_ai_generated: Option<bool>,
}

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