pub struct GetResult { /* private fields */ }
Expand description
Struct representing the result of a GetRequest
operation.
This struct is returned from a GetRequest::execute()
call.
Implementations§
Source§impl GetResult
impl GetResult
Sourcepub fn row(&self) -> Option<&MapValue>
pub fn row(&self) -> Option<&MapValue>
Get the returned row. If the row does not exist in the table, this value will be None
.
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 modification_time(&self) -> i64
pub fn modification_time(&self) -> i64
Get the last modification time of the row. This is only valid if the operation succeeded. Its value is the number of milliseconds since the epoch (Jan 1 1970).
Sourcepub fn expiration_time(&self) -> i64
pub fn expiration_time(&self) -> i64
Get the expiration time of the row. This is only valid if the operation succeeded. Its value is the number of milliseconds since the epoch (Jan 1 1970).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetResult
impl RefUnwindSafe for GetResult
impl Send for GetResult
impl Sync for GetResult
impl Unpin for GetResult
impl UnwindSafe for GetResult
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