pub struct VideoOptions {Show 14 fields
pub prompt: Option<String>,
pub n: u32,
pub aspect_ratio: Option<VideoAspectRatio>,
pub resolution: Option<ImageSize>,
pub duration: Option<f64>,
pub fps: Option<u32>,
pub seed: Option<u64>,
pub image: Option<VideoFile>,
pub frame_images: Vec<FrameImage>,
pub input_references: Vec<VideoFile>,
pub generate_audio: Option<bool>,
pub provider_options: ProviderOptions,
pub headers: Headers,
pub cancellation: CancellationToken,
}Expand description
Options for a video generation call.
Fields§
§prompt: Option<String>Text prompt.
n: u32Number of videos.
aspect_ratio: Option<VideoAspectRatio>Aspect ratio.
resolution: Option<ImageSize>Resolution in pixels.
duration: Option<f64>Duration in seconds.
fps: Option<u32>Frames per second.
seed: Option<u64>Random seed.
image: Option<VideoFile>Single input image.
frame_images: Vec<FrameImage>Frame-anchored input images.
input_references: Vec<VideoFile>Additional reference inputs.
generate_audio: Option<bool>Whether to generate audio.
provider_options: ProviderOptionsProvider-specific options keyed by provider name.
headers: HeadersAdditional request headers.
cancellation: CancellationTokenCancellation token.
Implementations§
Trait Implementations§
Source§impl Clone for VideoOptions
impl Clone for VideoOptions
Source§fn clone(&self) -> VideoOptions
fn clone(&self) -> VideoOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoOptions
impl Debug for VideoOptions
Auto Trait Implementations§
impl !Freeze for VideoOptions
impl RefUnwindSafe for VideoOptions
impl Send for VideoOptions
impl Sync for VideoOptions
impl Unpin for VideoOptions
impl UnsafeUnpin for VideoOptions
impl UnwindSafe for VideoOptions
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
Mutably borrows from an owned value. Read more