pub struct PutResult { /* private fields */ }
Expand description
Struct representing the result of a PutRequest
execution.
This struct is returned from a PutRequest::execute()
call.
Implementations§
Source§impl PutResult
impl PutResult
Sourcepub fn version(&self) -> Option<&Version>
pub fn version(&self) -> Option<&Version>
Get the Version of the now-current record. This value is Some
if the put operation succeeded. It
may be used in subsequent PutRequest::if_version()
calls.
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 generated_value(&self) -> Option<&FieldValue>
pub fn generated_value(&self) -> Option<&FieldValue>
Get the value generated if the operation created a new value. This can happen if the table contains an
identity column or string column declared as a generated UUID. If the table has no such column, this value is None
.
Sourcepub fn existing_modification_time(&self) -> i64
pub fn existing_modification_time(&self) -> i64
Get the modification time of the previous row if the put operation succeeded, or the modification time of the
current row if the operation failed due to a if_version()
or if_absent()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
the PutRequest
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 previous row if the put operation succeeded, or the value of the
current row if the operation failed due to a if_version()
or if_absent()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
the PutRequest
and a previous row existed.
Sourcepub fn existing_version(&self) -> Option<&Version>
pub fn existing_version(&self) -> Option<&Version>
Get the Version of the previous row if the put operation succeeded, or the Version of the
current row if the operation failed due to a if_version()
or if_absent()
mismatch.
In either case, this is only valid if [return_row(true)
] was called on
called on the PutRequest
and a previous row existed.