pub struct ListKeyVersionsRequest {
pub store_id: String,
pub key_prefix: Option<String>,
pub page_size: Option<i32>,
pub page_token: Option<String>,
}
Expand description
Request payload to be used for ListKeyVersions
API call to server.
Fields§
§store_id: String
store_id
is a keyspace identifier.
Ref: https://en.wikipedia.org/wiki/Keyspace_(distributed_data_store)
All APIs operate within a single store_id
.
It is up to clients to use single or multiple stores for their use-case.
This can be used for client-isolation/ rate-limiting / throttling on the server-side.
Authorization and billing can also be performed at the store_id
level.
key_prefix: Option<String>
A key_prefix
is a string of characters at the beginning of the key. Prefixes can be used as
a way to organize key-values in a similar way to directories.
If key_prefix
is specified, the response results will be limited to those keys that begin with
the specified prefix.
If no key_prefix
is specified or it is empty (“”), all the keys are eligible to be returned in
the response.
page_size: Option<i32>
page_size
is used by clients to specify the maximum number of results that can be returned by
the server.
The server may further constrain the maximum number of results returned in a single page.
If the page_size
is 0 or not set, the server will decide the number of results to be returned.
page_token: Option<String>
page_token
is a pagination token.
To query for the first page of ListKeyVersions
, page_token
must not be specified.
For subsequent pages, use the value that was returned as next_page_token
in the previous
page’s ListKeyVersionsResponse
.
Implementations§
Source§impl ListKeyVersionsRequest
impl ListKeyVersionsRequest
Sourcepub fn key_prefix(&self) -> &str
pub fn key_prefix(&self) -> &str
Returns the value of key_prefix
, or the default value if key_prefix
is unset.
Sourcepub fn page_size(&self) -> i32
pub fn page_size(&self) -> i32
Returns the value of page_size
, or the default value if page_size
is unset.
Sourcepub fn page_token(&self) -> &str
pub fn page_token(&self) -> &str
Returns the value of page_token
, or the default value if page_token
is unset.
Trait Implementations§
Source§impl Clone for ListKeyVersionsRequest
impl Clone for ListKeyVersionsRequest
Source§fn clone(&self) -> ListKeyVersionsRequest
fn clone(&self) -> ListKeyVersionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ListKeyVersionsRequest
impl Debug for ListKeyVersionsRequest
Source§impl Default for ListKeyVersionsRequest
impl Default for ListKeyVersionsRequest
Source§impl Message for ListKeyVersionsRequest
impl Message for ListKeyVersionsRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.