pub enum VideoFile {
File {
media_type: String,
data: FileBytes,
provider_options: Option<ProviderOptions>,
},
Url {
url: String,
provider_options: Option<ProviderOptions>,
},
}Expand description
Input image or video for image-to-video / video editing endpoints.
Mirrors VideoModelV4File.
Variants§
File
Inline file bytes.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Url
URL pointing to the file.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoFile
impl<'de> Deserialize<'de> for VideoFile
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for VideoFile
Auto Trait Implementations§
impl Freeze for VideoFile
impl RefUnwindSafe for VideoFile
impl Send for VideoFile
impl Sync for VideoFile
impl Unpin for VideoFile
impl UnsafeUnpin for VideoFile
impl UnwindSafe for VideoFile
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