pub struct InputVideoArgs { /* private fields */ }Expand description
Builder for InputVideo.
Implementations§
Source§impl InputVideoArgs
impl InputVideoArgs
Sourcepub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
pub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
The detail level of the video to be sent to the model.
Sourcepub fn file_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The ID of the file to be sent to the model.
Sourcepub fn video_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn video_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL of the video to be sent to the model. A fully qualified URL or base64 encoded video in a data URL.
Sourcepub fn build(&self) -> Result<InputVideo, OpenAIError>
pub fn build(&self) -> Result<InputVideo, OpenAIError>
Trait Implementations§
Source§impl Clone for InputVideoArgs
impl Clone for InputVideoArgs
Source§fn clone(&self) -> InputVideoArgs
fn clone(&self) -> InputVideoArgs
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 moreAuto Trait Implementations§
impl Freeze for InputVideoArgs
impl RefUnwindSafe for InputVideoArgs
impl Send for InputVideoArgs
impl Sync for InputVideoArgs
impl Unpin for InputVideoArgs
impl UnwindSafe for InputVideoArgs
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