pub enum VideoInput {
File(PathBuf),
Bytes {
data: Vec<u8>,
filename: String,
media_type: String,
},
Url(String),
Base64 {
data: String,
media_type: String,
},
}Expand description
Input source for video generation.
Variants§
File(PathBuf)
Path to a local file.
Bytes
Binary data in memory.
Url(String)
URL to a file.
Base64
Base64-encoded data.
Implementations§
Trait Implementations§
Source§impl Clone for VideoInput
impl Clone for VideoInput
Source§fn clone(&self) -> VideoInput
fn clone(&self) -> VideoInput
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 VideoInput
impl RefUnwindSafe for VideoInput
impl Send for VideoInput
impl Sync for VideoInput
impl Unpin for VideoInput
impl UnwindSafe for VideoInput
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