pub struct UpdateRequest {
pub id: String,
pub values: Option<Vec<f32>>,
pub sparse_values: Option<SparseValues>,
pub metadata: Option<MappedValue>,
pub namespace: Option<String>,
}
Expand description
Updates a vector in a namespace.
Fields§
§id: String
Vector id to update.
values: Option<Vec<f32>>
Values to change it to
sparse_values: Option<SparseValues>
New Sparse values to update
metadata: Option<MappedValue>
New metadata values.
namespace: Option<String>
Namespace to run this operation on, empty namespace can be used if you would like to run it on the whole index.
Trait Implementations§
Source§impl Clone for UpdateRequest
impl Clone for UpdateRequest
Source§fn clone(&self) -> UpdateRequest
fn clone(&self) -> UpdateRequest
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 UpdateRequest
impl Debug for UpdateRequest
Source§impl Default for UpdateRequest
impl Default for UpdateRequest
Source§fn default() -> UpdateRequest
fn default() -> UpdateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateRequest
impl<'de> Deserialize<'de> for UpdateRequest
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 UpdateRequest
impl RefUnwindSafe for UpdateRequest
impl Send for UpdateRequest
impl Sync for UpdateRequest
impl Unpin for UpdateRequest
impl UnwindSafe for UpdateRequest
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