pub struct EmbeddingsData {
pub embedding: Vec<f32>,
pub index: usize,
}
Expand description
The data from an embeddings request.
Fields§
§embedding: Vec<f32>
§index: usize
Trait Implementations§
Source§impl Clone for EmbeddingsData
impl Clone for EmbeddingsData
Source§fn clone(&self) -> EmbeddingsData
fn clone(&self) -> EmbeddingsData
Returns a copy 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 EmbeddingsData
impl Debug for EmbeddingsData
Source§impl<'de> Deserialize<'de> for EmbeddingsData
impl<'de> Deserialize<'de> for EmbeddingsData
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 EmbeddingsData
impl RefUnwindSafe for EmbeddingsData
impl Send for EmbeddingsData
impl Sync for EmbeddingsData
impl Unpin for EmbeddingsData
impl UnwindSafe for EmbeddingsData
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