pub struct TableUsageRequest { /* private fields */ }
Expand description
Struct used for querying the usage of a NoSQL Database table.
Implementations§
Source§impl TableUsageRequest
impl TableUsageRequest
Sourcepub fn new(table_name: &str) -> TableUsageRequest
pub fn new(table_name: &str) -> TableUsageRequest
Create a new TableUsageRequest.
Sourcepub fn timeout(self, t: &Duration) -> Self
pub fn timeout(self, t: &Duration) -> Self
Specify the timeout value for the request.
This is optional.
If set, it must be greater than or equal to 1 millisecond, otherwise an
IllegalArgument error will be returned.
If not set, the default timeout value configured for the Handle
is used.
Sourcepub fn compartment_id(self, compartment_id: &str) -> Self
pub fn compartment_id(self, compartment_id: &str) -> Self
Cloud Service only: set the name or id of a compartment to be used for this operation.
The compartment may be specified as either a name (or path for nested compartments) or as an id (OCID).
A name (vs id) can only be used when authenticated using a specific user identity. It is not available if
the associated handle authenticated as an Instance Principal (which can be done when calling the service from
a compute instance in the Oracle Cloud Infrastructure: see HandleBuilder::cloud_auth_from_instance()
.)
If no compartment is given, the root compartment of the tenancy will be used.
Sourcepub fn start_time(self, t: DateTime<FixedOffset>) -> TableUsageRequest
pub fn start_time(self, t: DateTime<FixedOffset>) -> TableUsageRequest
Specify the start time for TableUsage records.
Sourcepub fn end_time(self, t: DateTime<FixedOffset>) -> TableUsageRequest
pub fn end_time(self, t: DateTime<FixedOffset>) -> TableUsageRequest
Specify the end time for TableUsage records.
Sourcepub fn limit(self, l: i32) -> TableUsageRequest
pub fn limit(self, l: i32) -> TableUsageRequest
Specify the limit of TableUsage records to return.
Sourcepub fn start_index(self, i: i32) -> TableUsageRequest
pub fn start_index(self, i: i32) -> TableUsageRequest
Specify the starting index of TableUsage records.
This is usually set by adding one to a previous TableUsageResult::last_index_returned()
call.
The indexes start at zero.
Sourcepub async fn execute(&self, h: &Handle) -> Result<TableUsageResult, NoSQLError>
pub async fn execute(&self, h: &Handle) -> Result<TableUsageResult, NoSQLError>
Execute the request, returning a TableUsageResult
.