pub struct UpdateRowArgsBuilder { /* private fields */ }Expand description
Builder for UpdateRowArgs.
Implementations§
Source§impl UpdateRowArgsBuilder
impl UpdateRowArgsBuilder
pub fn database<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn table<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn primary_key<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn primary_key<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
the primary key value of the record to be updated
Sourcepub fn partition_ey(&mut self, value: Value) -> &mut Self
pub fn partition_ey(&mut self, value: Value) -> &mut Self
the partition value of the record to be updated. If the partition key and primary key of the table are the same key, there is no need to fill in the partition key value. The partition key value will only take effect if there is a primary key value
Sourcepub fn update<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn update<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
list of fields to be updated and their new values. Updating primary keys, partition keys, and vector fields is not allowed
Sourcepub fn build(&self) -> Result<UpdateRowArgs, UpdateRowArgsBuilderError>
pub fn build(&self) -> Result<UpdateRowArgs, UpdateRowArgsBuilderError>
Trait Implementations§
Source§impl Clone for UpdateRowArgsBuilder
impl Clone for UpdateRowArgsBuilder
Source§fn clone(&self) -> UpdateRowArgsBuilder
fn clone(&self) -> UpdateRowArgsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UpdateRowArgsBuilder
impl RefUnwindSafe for UpdateRowArgsBuilder
impl Send for UpdateRowArgsBuilder
impl Sync for UpdateRowArgsBuilder
impl Unpin for UpdateRowArgsBuilder
impl UnwindSafe for UpdateRowArgsBuilder
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