pub struct CreateVideoExtendRequestArgs { /* private fields */ }Available on crate feature
video-types only.Expand description
Builder for CreateVideoExtendRequest.
Implementations§
Source§impl CreateVideoExtendRequestArgs
impl CreateVideoExtendRequestArgs
Sourcepub fn video<VALUE: Into<VideoEditInput>>(&mut self, value: VALUE) -> &mut Self
pub fn video<VALUE: Into<VideoEditInput>>(&mut self, value: VALUE) -> &mut Self
Reference to the completed video to extend (video ID or uploaded file).
Sourcepub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Updated text prompt that directs the extension generation.
Sourcepub fn seconds<VALUE: Into<VideoSeconds>>(&mut self, value: VALUE) -> &mut Self
pub fn seconds<VALUE: Into<VideoSeconds>>(&mut self, value: VALUE) -> &mut Self
Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).
Sourcepub fn build(&self) -> Result<CreateVideoExtendRequest, OpenAIError>
pub fn build(&self) -> Result<CreateVideoExtendRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateVideoExtendRequestArgs
impl Clone for CreateVideoExtendRequestArgs
Source§fn clone(&self) -> CreateVideoExtendRequestArgs
fn clone(&self) -> CreateVideoExtendRequestArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateVideoExtendRequestArgs
impl Debug for CreateVideoExtendRequestArgs
Auto Trait Implementations§
impl !Freeze for CreateVideoExtendRequestArgs
impl RefUnwindSafe for CreateVideoExtendRequestArgs
impl Send for CreateVideoExtendRequestArgs
impl Sync for CreateVideoExtendRequestArgs
impl Unpin for CreateVideoExtendRequestArgs
impl UnsafeUnpin for CreateVideoExtendRequestArgs
impl UnwindSafe for CreateVideoExtendRequestArgs
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