Skip to main content

hanzo_client/models/
generate_input.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GenerateInput {
16    /// the brief/goal driving copy generation
17    #[serde(rename = "brief", skip_serializing_if = "Option::is_none")]
18    pub brief: Option<String>,
19    /// target channels (SocialPost)
20    #[serde(rename = "channels", skip_serializing_if = "Option::is_none")]
21    pub channels: Option<String>,
22    /// studio design slug (asset source)
23    #[serde(rename = "design", skip_serializing_if = "Option::is_none")]
24    pub design: Option<String>,
25    /// Campaign | SocialPost | Asset
26    #[serde(rename = "doctype", skip_serializing_if = "Option::is_none")]
27    pub doctype: Option<String>,
28    /// asset kind: ecom|product|lifestyle|hover|hero
29    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
30    pub kind: Option<String>,
31    /// optional zen model override (copy)
32    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
33    pub model: Option<String>,
34    /// commerce product handle (copy context)
35    #[serde(rename = "product", skip_serializing_if = "Option::is_none")]
36    pub product: Option<String>,
37    /// brand/site sub-scope (billing + tenancy axis)
38    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
39    pub project: Option<String>,
40    /// asset source image (design CAD/photo)
41    #[serde(rename = "source_media", skip_serializing_if = "Option::is_none")]
42    pub source_media: Option<String>,
43    /// optional explicit title
44    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
45    pub title: Option<String>,
46    /// tone override for a single draft
47    #[serde(rename = "tone", skip_serializing_if = "Option::is_none")]
48    pub tone: Option<String>,
49    /// brand-voice guidance for the copy director
50    #[serde(rename = "voice", skip_serializing_if = "Option::is_none")]
51    pub voice: Option<String>,
52}
53
54impl GenerateInput {
55    pub fn new() -> GenerateInput {
56        GenerateInput {
57            brief: None,
58            channels: None,
59            design: None,
60            doctype: None,
61            kind: None,
62            model: None,
63            product: None,
64            project: None,
65            source_media: None,
66            title: None,
67            tone: None,
68            voice: None,
69        }
70    }
71}
72