pub struct UpsertStmt {
pub collection: String,
pub points: Vec<PointEntry>,
pub embedding: Option<EmbeddingSpec>,
pub embed: Vec<EmbedDirective>,
pub update_filter: Option<FilterExpr>,
pub update_mode: Option<UpsertUpdateMode>,
pub shard_key: Option<ShardKey>,
pub wait: Option<bool>,
}Expand description
UPSERT INTO <collection> VALUES … statement.
Fields§
§collection: StringTarget collection.
points: Vec<PointEntry>Points to upsert.
embedding: Option<EmbeddingSpec>Optional USING embedding clause.
embed: Vec<EmbedDirective>EMBED <field> INTO <vector> directives.
update_filter: Option<FilterExpr>UPDATE FILTER <filter> guard: only matching points update.
update_mode: Option<UpsertUpdateMode>UPDATE MODE <insert_only | update_only | upsert> guard.
shard_key: Option<ShardKey>SHARD '<key>' or SHARD <n> routing key.
wait: Option<bool>Optional write durability confirmation (WAIT true / WAIT false).
Trait Implementations§
Source§impl Clone for UpsertStmt
impl Clone for UpsertStmt
Source§fn clone(&self) -> UpsertStmt
fn clone(&self) -> UpsertStmt
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 UpsertStmt
impl Debug for UpsertStmt
Source§impl PartialEq for UpsertStmt
impl PartialEq for UpsertStmt
impl StructuralPartialEq for UpsertStmt
Auto Trait Implementations§
impl Freeze for UpsertStmt
impl RefUnwindSafe for UpsertStmt
impl Send for UpsertStmt
impl Sync for UpsertStmt
impl Unpin for UpsertStmt
impl UnsafeUnpin for UpsertStmt
impl UnwindSafe for UpsertStmt
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