pub struct EmbeddingData {
pub index: usize,
pub embedding: Vec<f32>,
pub object: String,
}
Fields§
§index: usize
The index of the embedding in the list of embeddings.
embedding: Vec<f32>
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
object: String
The object type, which is always “embedding”.
Trait Implementations§
Source§impl Clone for EmbeddingData
impl Clone for EmbeddingData
Source§fn clone(&self) -> EmbeddingData
fn clone(&self) -> EmbeddingData
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 moreSource§impl Debug for EmbeddingData
impl Debug for EmbeddingData
Source§impl<'de> Deserialize<'de> for EmbeddingData
impl<'de> Deserialize<'de> for EmbeddingData
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 EmbeddingData
impl RefUnwindSafe for EmbeddingData
impl Send for EmbeddingData
impl Sync for EmbeddingData
impl Unpin for EmbeddingData
impl UnwindSafe for EmbeddingData
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