pub struct EmbeddingItem {
pub text: Option<String>,
pub image: Option<String>,
}Expand description
A single embedding input item — text or image.
Fields§
§text: Option<String>Text to embed
image: Option<String>Image: file path or base64 data URI
Trait Implementations§
Source§impl Clone for EmbeddingItem
impl Clone for EmbeddingItem
Source§fn clone(&self) -> EmbeddingItem
fn clone(&self) -> EmbeddingItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddingItem
impl Debug for EmbeddingItem
Source§impl<'de> Deserialize<'de> for EmbeddingItem
impl<'de> Deserialize<'de> for EmbeddingItem
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
Auto Trait Implementations§
impl Freeze for EmbeddingItem
impl RefUnwindSafe for EmbeddingItem
impl Send for EmbeddingItem
impl Sync for EmbeddingItem
impl Unpin for EmbeddingItem
impl UnsafeUnpin for EmbeddingItem
impl UnwindSafe for EmbeddingItem
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