late 0.0.697

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * 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};

/// UpdateAdCampaignRequestPlatformSpecificData : **Meta only.** Platform implied by the `platform` body param, same convention as POST /v1/ads/create.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAdCampaignRequestPlatformSpecificData {
    /// Campaign lifetime spend cap, in the ad account's currency (Meta `spend_cap`). Pass null to remove the cap; 0 is rejected by Meta.
    #[serde(
        rename = "spendCap",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub spend_cap: Option<Option<f64>>,
}

impl UpdateAdCampaignRequestPlatformSpecificData {
    /// **Meta only.** Platform implied by the `platform` body param, same convention as POST /v1/ads/create.
    pub fn new() -> UpdateAdCampaignRequestPlatformSpecificData {
        UpdateAdCampaignRequestPlatformSpecificData { spend_cap: None }
    }
}