use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, bon::Builder)]
pub struct CreateVideoRemixBody {
#[serde(rename = "prompt")]
pub prompt: String,
}
impl CreateVideoRemixBody {
pub fn new(prompt: String) -> CreateVideoRemixBody {
CreateVideoRemixBody { prompt }
}
}
impl std::fmt::Display for CreateVideoRemixBody {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match serde_json::to_string(self) {
Ok(s) => write!(f, "{}", s),
Err(_) => Err(std::fmt::Error),
}
}
}