pub struct BatchWriteRowRequest {
pub tables: Vec<TableInBatchWriteRowRequest>,
pub transaction_id: Option<String>,
pub is_atomic: Option<bool>,
}
Expand description
接口批量插入、修改或删除一个或多个表中的若干行数据。
官方文档:https://help.aliyun.com/zh/tablestore/developer-reference/batchwriterow
Fields§
§tables: Vec<TableInBatchWriteRowRequest>
§transaction_id: Option<String>
局部事务 ID。当使用局部事务功能批量写入数据时必须设置此参数。
is_atomic: Option<bool>
指示批量写操作是否以原子操作的形式执行。
Implementations§
Source§impl BatchWriteRowRequest
impl BatchWriteRowRequest
pub fn new() -> Self
Sourcepub fn table(self, item: TableInBatchWriteRowRequest) -> Self
pub fn table(self, item: TableInBatchWriteRowRequest) -> Self
添加一个表的查询
Sourcepub fn tables(
self,
items: impl IntoIterator<Item = TableInBatchWriteRowRequest>,
) -> Self
pub fn tables( self, items: impl IntoIterator<Item = TableInBatchWriteRowRequest>, ) -> Self
设置多个表的查询
Sourcepub fn transaction_id(self, tx_id: impl Into<String>) -> Self
pub fn transaction_id(self, tx_id: impl Into<String>) -> Self
设置事务 ID
Trait Implementations§
Source§impl Clone for BatchWriteRowRequest
impl Clone for BatchWriteRowRequest
Source§fn clone(&self) -> BatchWriteRowRequest
fn clone(&self) -> BatchWriteRowRequest
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 moreSource§impl Debug for BatchWriteRowRequest
impl Debug for BatchWriteRowRequest
Source§impl Default for BatchWriteRowRequest
impl Default for BatchWriteRowRequest
Source§fn default() -> BatchWriteRowRequest
fn default() -> BatchWriteRowRequest
Returns the “default value” for a type. Read more
Source§impl From<BatchWriteRowRequest> for BatchWriteRowRequest
impl From<BatchWriteRowRequest> for BatchWriteRowRequest
Source§fn from(value: BatchWriteRowRequest) -> Self
fn from(value: BatchWriteRowRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchWriteRowRequest
impl RefUnwindSafe for BatchWriteRowRequest
impl Send for BatchWriteRowRequest
impl Sync for BatchWriteRowRequest
impl Unpin for BatchWriteRowRequest
impl UnwindSafe for BatchWriteRowRequest
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