hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateCampaignIn {
    /// Account is the provider ad-account this campaign runs on (Meta act_<id>). Optional.
    #[serde(rename = "account", skip_serializing_if = "Option::is_none")]
    pub account: Option<String>,
    /// Budget is the campaign budget in MINOR units (cents). Negative values clamp to 0.
    #[serde(rename = "budget", skip_serializing_if = "Option::is_none")]
    pub budget: Option<i32>,
    /// Name is the campaign's display label. Required; trimmed and bounded to 1024 bytes.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Objective is the campaign goal as the provider names it. Optional, bounded to 1024 bytes.
    #[serde(rename = "objective", skip_serializing_if = "Option::is_none")]
    pub objective: Option<String>,
    /// Platform is the ad network: meta, google, tiktok or x. Empty defaults to meta.
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    /// Spend is the amount spent so far in MINOR units (cents). Negative values clamp to 0.
    #[serde(rename = "spend", skip_serializing_if = "Option::is_none")]
    pub spend: Option<i32>,
    /// Status is the lifecycle state: draft, active, paused or completed. Empty defaults to draft.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl UpdateCampaignIn {
    pub fn new() -> UpdateCampaignIn {
        UpdateCampaignIn {
            account: None,
            budget: None,
            name: None,
            objective: None,
            platform: None,
            spend: None,
            status: None,
        }
    }
}