pub struct TableUsageResult { /* private fields */ }
Expand description
Struct representing the result of a TableUsageRequest
operation.
Implementations§
Source§impl TableUsageResult
Struct representing the result of a TableUsageRequest execution.
impl TableUsageResult
Struct representing the result of a TableUsageRequest execution.
Sourcepub fn table_name(&self) -> String
pub fn table_name(&self) -> String
Get the table name.
Sourcepub fn usage_records(&self) -> &Vec<TableUsage>
pub fn usage_records(&self) -> &Vec<TableUsage>
Get a reference to a vector of usage records.
Sourcepub fn take_usage_records(&mut self) -> Vec<TableUsage>
pub fn take_usage_records(&mut self) -> Vec<TableUsage>
Take the Result’s vector of usage records, leaving the Result with a new empty vector.
Sourcepub fn last_index_returned(&self) -> i32
pub fn last_index_returned(&self) -> i32
Get the last index returned.
This is typically used when specifying a limit
on the usage request. If this value
is greater than the start_index
plus limit
, there are more records to retreive. In the
next request, set the start_index
to this value plus one.
Trait Implementations§
Source§impl Debug for TableUsageResult
impl Debug for TableUsageResult
Source§impl Default for TableUsageResult
impl Default for TableUsageResult
Source§fn default() -> TableUsageResult
fn default() -> TableUsageResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableUsageResult
impl RefUnwindSafe for TableUsageResult
impl Send for TableUsageResult
impl Sync for TableUsageResult
impl Unpin for TableUsageResult
impl UnwindSafe for TableUsageResult
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