pub struct EmbeddingVector {
pub index: usize,
pub values: Vec<f32>,
}Fields§
§index: usize§values: Vec<f32>Trait Implementations§
Source§impl Clone for EmbeddingVector
impl Clone for EmbeddingVector
Source§fn clone(&self) -> EmbeddingVector
fn clone(&self) -> EmbeddingVector
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 EmbeddingVector
impl Debug for EmbeddingVector
Source§impl<'de> Deserialize<'de> for EmbeddingVector
impl<'de> Deserialize<'de> for EmbeddingVector
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
Source§impl PartialEq for EmbeddingVector
impl PartialEq for EmbeddingVector
Source§fn eq(&self, other: &EmbeddingVector) -> bool
fn eq(&self, other: &EmbeddingVector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmbeddingVector
impl Serialize for EmbeddingVector
impl StructuralPartialEq for EmbeddingVector
Auto Trait Implementations§
impl Freeze for EmbeddingVector
impl RefUnwindSafe for EmbeddingVector
impl Send for EmbeddingVector
impl Sync for EmbeddingVector
impl Unpin for EmbeddingVector
impl UnsafeUnpin for EmbeddingVector
impl UnwindSafe for EmbeddingVector
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