pub struct WanI2VRequest {
pub enable_prompt_expansion: Option<bool>,
pub enable_safety_checker: Option<bool>,
pub frames_per_second: Option<i64>,
pub image_url: String,
pub num_frames: Option<i64>,
pub num_inference_steps: Option<i64>,
pub prompt: String,
pub resolution: Option<String>,
pub seed: Option<i64>,
}Fields§
§enable_prompt_expansion: Option<bool>Whether to enable prompt expansion./// Whether to enable prompt expansion./// true
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
frames_per_second: Option<i64>Frames per second of the generated video. Must be between 5 to 24.
image_url: StringURL of the input image./// URL of the input image./// “https://fal.media/files/elephant/8kkhB12hEZI2kkbU8pZPA_test.jpeg”
num_frames: Option<i64>Number of frames to generate. Must be between 81 to 100 (inclusive).
num_inference_steps: Option<i64>Number of inference steps for sampling. Higher values give better quality but take longer.
prompt: StringThe text prompt to guide video generation./// The text prompt to guide video generation./// “A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage.”
resolution: Option<String>Resolution of the generated video (480p or 720p).
seed: Option<i64>Random seed for reproducibility. If None, a random seed is chosen.
Trait Implementations§
Source§impl Debug for WanI2VRequest
impl Debug for WanI2VRequest
Source§impl Default for WanI2VRequest
impl Default for WanI2VRequest
Source§fn default() -> WanI2VRequest
fn default() -> WanI2VRequest
Source§impl<'de> Deserialize<'de> for WanI2VRequest
impl<'de> Deserialize<'de> for WanI2VRequest
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 WanI2VRequest
impl RefUnwindSafe for WanI2VRequest
impl Send for WanI2VRequest
impl Sync for WanI2VRequest
impl Unpin for WanI2VRequest
impl UnwindSafe for WanI2VRequest
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().