pub struct UpdatePayloadStmt {
pub collection: String,
pub selector: PointSelector,
pub payload: Vec<(String, Value)>,
pub key: Option<String>,
pub overwrite: bool,
pub shard_key: Option<ShardKey>,
pub wait: Option<bool>,
}Expand description
UPDATE <collection> SET PAYLOAD = {…} WHERE … statement.
Fields§
§collection: StringTarget collection.
selector: PointSelectorPoints to update.
payload: Vec<(String, Value)>Payload keys to merge into the points.
key: Option<String>KEY '<path>' nested assignment path (OpenAPI SetPayload.key).
overwrite: boolOVERWRITE flag: replace the full payload instead of merging.
shard_key: Option<ShardKey>SHARD '<key>' routing key.
wait: Option<bool>Optional write durability confirmation (WAIT true / WAIT false).
Trait Implementations§
Source§impl Clone for UpdatePayloadStmt
impl Clone for UpdatePayloadStmt
Source§fn clone(&self) -> UpdatePayloadStmt
fn clone(&self) -> UpdatePayloadStmt
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 UpdatePayloadStmt
impl Debug for UpdatePayloadStmt
Source§impl PartialEq for UpdatePayloadStmt
impl PartialEq for UpdatePayloadStmt
impl StructuralPartialEq for UpdatePayloadStmt
Auto Trait Implementations§
impl Freeze for UpdatePayloadStmt
impl RefUnwindSafe for UpdatePayloadStmt
impl Send for UpdatePayloadStmt
impl Sync for UpdatePayloadStmt
impl Unpin for UpdatePayloadStmt
impl UnsafeUnpin for UpdatePayloadStmt
impl UnwindSafe for UpdatePayloadStmt
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