pub struct DeleteResult { /* private fields */ }
Expand description
Struct representing the result of a DeleteRequest
execution.
This struct is returned from a DeleteRequest::execute()
call.
Implementations§
Source§impl DeleteResult
impl DeleteResult
Sourcepub fn success(&self) -> bool
pub fn success(&self) -> bool
Get the result of the operation: true
if the row was deleted from the table.
Sourcepub fn consumed(&self) -> Option<&Capacity>
pub fn consumed(&self) -> Option<&Capacity>
Get the consumed capacity (read/write units) of the operation. This is only valid in the NoSQL Cloud Service.
Sourcepub fn existing_modification_time(&self) -> i64
pub fn existing_modification_time(&self) -> i64
Get the modification time of the deleted row if the delete operation succeeded, or the modification time of the
current row if the operation failed due to a if_version()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
the DeleteRequest
and a previous row existed.
Its value is the number of milliseconds since the epoch (Jan 1 1970).
Sourcepub fn existing_value(&self) -> Option<&MapValue>
pub fn existing_value(&self) -> Option<&MapValue>
Get the value of the deleted row if the delete operation succeeded, or the value of the
current row if the operation failed due to a if_version()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
the DeleteRequest
and a previous row existed.
Sourcepub fn existing_version(&self) -> Option<&Version>
pub fn existing_version(&self) -> Option<&Version>
Get the Version of the deleted row if the delete operation succeeded, or the Version of the
current row if the operation failed due to a if_version()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
called on the DeleteRequest
and a previous row existed.