pub struct Vector {
pub id: String,
pub values: Vec<f32>,
pub sparse_values: Option<SparseValues>,
pub metadata: Option<MappedValue>,
}
Expand description
Represents a vector that can be sent and retrieved from pinecone.
Fields§
§id: String
Unique Identifier for the vector.
values: Vec<f32>
The values this vector holds, this should the same length as the dimension of the vector.
sparse_values: Option<SparseValues>
The sparse values the vector should hold.
metadata: Option<MappedValue>
Vector metadata that can be used during queries.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vector
impl<'de> Deserialize<'de> for Vector
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 Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnwindSafe for Vector
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