pub struct VideoCallOptions {Show 17 fields
pub prompt: Option<String>,
pub n: u32,
pub aspect_ratio: Option<AspectRatio>,
pub resolution: Option<Size>,
pub duration: Option<u32>,
pub fps: Option<u32>,
pub seed: Option<u64>,
pub image: Option<VideoFile>,
pub frame_images: Option<Vec<VideoFrameImage>>,
pub input_references: Option<Vec<VideoFile>>,
pub generate_audio: Option<bool>,
pub provider_options: SharedProviderOptions,
pub abort_signal: Option<AbortSignal>,
pub max_retries: Option<u32>,
pub poll: Option<VideoPollOptions>,
pub timeout: Option<TimeoutConfiguration>,
pub headers: Option<SharedHeaders>,
}Expand description
Options passed to VideoModel::do_start and VideoModel::do_status.
Aligned with V4 VideoModelV4CallOptions.
Fields§
§prompt: Option<String>Text prompt for the video generation. None when not required.
n: u32Number of videos to generate. Default 1; most models only support
n = 1 due to computational cost.
aspect_ratio: Option<AspectRatio>Aspect ratio, in {width}:{height} format (e.g. "16:9").
resolution: Option<Size>Resolution, in {width}x{height} format (e.g. "1280x720").
duration: Option<u32>Duration of the video in seconds. Typically 3–10 seconds.
fps: Option<u32>Frames per second. Common values: 24, 30, 60.
seed: Option<u64>Seed for deterministic generation. None uses a random seed.
image: Option<VideoFile>Input image for image-to-video generation (the starting frame).
frame_images: Option<Vec<VideoFrameImage>>Role-tagged image inputs for first-last-frame generation.
input_references: Option<Vec<VideoFile>>Reference inputs for reference-to-video generation (images or videos).
generate_audio: Option<bool>Whether the model should generate audio alongside the video.
provider_options: SharedProviderOptionsAdditional provider-specific options, keyed by provider name.
abort_signal: Option<AbortSignal>Abort signal for cancelling the operation.
max_retries: Option<u32>Per-call retry override. None uses the model default.
poll: Option<VideoPollOptions>Per-call poll pacing override for the start/status flow. Unset fields
fall back to the model’s VideoModel::poll_config.
timeout: Option<TimeoutConfiguration>Per-call operation timeout.
headers: Option<SharedHeaders>Additional HTTP headers to send with the request.
Implementations§
Trait Implementations§
Source§impl Clone for VideoCallOptions
impl Clone for VideoCallOptions
Source§impl Debug for VideoCallOptions
impl Debug for VideoCallOptions
Source§impl<'de> Deserialize<'de> for VideoCallOptions
impl<'de> Deserialize<'de> for VideoCallOptions
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>,
Source§impl Serialize for VideoCallOptions
impl Serialize for VideoCallOptions
Source§impl TS for VideoCallOptions
impl TS for VideoCallOptions
Source§type WithoutGenerics = VideoCallOptions
type WithoutGenerics = VideoCallOptions
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = VideoCallOptions
type OptionInnerType = VideoCallOptions
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more