/*
 * Text Video Agent Api
 *
 * 文本生成视频API服务
 *
 * The version of the OpenAPI document: 1.0.6
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskRequest {
    #[serde(rename = "task_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub task_type: Option<Option<String>>,
    /// 生图的提示词
    #[serde(rename = "prompt")]
    pub prompt: String,
    #[serde(rename = "img_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub img_url: Option<Option<String>>,
    /// 生成图片,视频的分辨率
    #[serde(rename = "ar", skip_serializing_if = "Option::is_none")]
    pub ar: Option<String>,
}

impl TaskRequest {
    pub fn new(prompt: String) -> TaskRequest {
        TaskRequest {
            task_type: None,
            prompt,
            img_url: None,
            ar: None,
        }
    }
}

