pub enum EmbedInput {
Text(String),
ImageBytes {
data: Vec<u8>,
mime_type: String,
},
ImagePath(PathBuf),
VideoFrame {
path: PathBuf,
timestamp_ms: u64,
},
Mixed(Vec<EmbedInput>),
}Expand description
Input for embedding operations.
Supports multiple modalities for multimodal embedders like Qwen3-VL.
Variants§
Text(String)
Plain text input.
ImageBytes
Raw image bytes with MIME type.
ImagePath(PathBuf)
Path to an image file (for lazy loading).
VideoFrame
Video frame at a specific timestamp.
Mixed(Vec<EmbedInput>)
Mixed modality input (e.g., text + image together). Qwen3-VL supports this for joint embedding.
Implementations§
Source§impl EmbedInput
impl EmbedInput
Sourcepub fn image_path(path: impl Into<PathBuf>) -> Self
pub fn image_path(path: impl Into<PathBuf>) -> Self
Creates an image path input.
Trait Implementations§
Source§impl Clone for EmbedInput
impl Clone for EmbedInput
Source§fn clone(&self) -> EmbedInput
fn clone(&self) -> EmbedInput
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 EmbedInput
impl RefUnwindSafe for EmbedInput
impl Send for EmbedInput
impl Sync for EmbedInput
impl Unpin for EmbedInput
impl UnwindSafe for EmbedInput
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