pub struct CreateVideoRequestArgs { /* private fields */ }Available on crate feature
video-types only.Expand description
Builder for CreateVideoRequest.
Implementations§
Source§impl CreateVideoRequestArgs
impl CreateVideoRequestArgs
Sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults to sora-2.
Sourcepub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Text prompt that describes the video to generate.
Sourcepub fn size<VALUE: Into<VideoSize>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<VideoSize>>(&mut self, value: VALUE) -> &mut Self
Output resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.
Sourcepub fn seconds<VALUE: Into<VideoSeconds>>(&mut self, value: VALUE) -> &mut Self
pub fn seconds<VALUE: Into<VideoSeconds>>(&mut self, value: VALUE) -> &mut Self
Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.
Sourcepub fn input_reference<VALUE: Into<ImageInput>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn input_reference<VALUE: Into<ImageInput>>( &mut self, value: VALUE, ) -> &mut Self
Optional image reference that guides generation.
Sourcepub fn build(&self) -> Result<CreateVideoRequest, OpenAIError>
pub fn build(&self) -> Result<CreateVideoRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateVideoRequestArgs
impl Clone for CreateVideoRequestArgs
Source§fn clone(&self) -> CreateVideoRequestArgs
fn clone(&self) -> CreateVideoRequestArgs
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateVideoRequestArgs
impl Debug for CreateVideoRequestArgs
Auto Trait Implementations§
impl !Freeze for CreateVideoRequestArgs
impl RefUnwindSafe for CreateVideoRequestArgs
impl Send for CreateVideoRequestArgs
impl Sync for CreateVideoRequestArgs
impl Unpin for CreateVideoRequestArgs
impl UnwindSafe for CreateVideoRequestArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)