pub struct HunyuanT2VRequest {
pub aspect_ratio: Option<String>,
pub enable_safety_checker: Option<bool>,
pub loras: Option<Vec<Option<LoraWeight>>>,
pub num_frames: Option<String>,
pub pro_mode: Option<bool>,
pub prompt: String,
pub resolution: Option<String>,
pub seed: Option<i64>,
}Fields§
§aspect_ratio: Option<String>The aspect ratio of the video to generate.
enable_safety_checker: Option<bool>If set to true, the safety checker will be enabled./// If set to true, the safety checker will be enabled./// true
loras: Option<Vec<Option<LoraWeight>>>The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image./// The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image.
num_frames: Option<String>The number of frames to generate.
pro_mode: Option<bool>By default, generations are done with 35 steps. Pro mode does 55 steps which results in higher quality videos but will take more time and cost 2x more billing units.
prompt: StringThe prompt to generate the video from./// The prompt to generate the video from./// “A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.”
resolution: Option<String>The resolution of the video to generate.
seed: Option<i64>The seed to use for generating the video.
Trait Implementations§
Source§impl Debug for HunyuanT2VRequest
impl Debug for HunyuanT2VRequest
Source§impl Default for HunyuanT2VRequest
impl Default for HunyuanT2VRequest
Source§fn default() -> HunyuanT2VRequest
fn default() -> HunyuanT2VRequest
Source§impl<'de> Deserialize<'de> for HunyuanT2VRequest
impl<'de> Deserialize<'de> for HunyuanT2VRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for HunyuanT2VRequest
impl RefUnwindSafe for HunyuanT2VRequest
impl Send for HunyuanT2VRequest
impl Sync for HunyuanT2VRequest
impl Unpin for HunyuanT2VRequest
impl UnwindSafe for HunyuanT2VRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().