#[non_exhaustive]pub struct ListApiKeysOptions {
pub page: Option<u32>,
pub limit: Option<u32>,
pub cursor: Option<String>,
pub shape: Option<String>,
pub flat: bool,
pub flat_lists: bool,
pub extra: BTreeMap<String, String>,
}Expand description
Options for Client::list_api_keys.
/api/api-keys/ doesn’t paginate in practice today, but we accept the
standard pagination/shape knobs anyway so callers can stay consistent
with every other list endpoint, and so the SDK doesn’t need a breaking
change if the server starts paginating later.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page: Option<u32>1-based page number (forwarded if the server starts paginating).
limit: Option<u32>Page size.
cursor: Option<String>Keyset cursor.
shape: Option<String>Comma-separated field selector.
flat: boolCollapse nested objects into dot-separated keys.
flat_lists: boolWhen flat is also true, flatten list-valued fields.
extra: BTreeMap<String, String>Escape hatch for keys not first-classed here.
Implementations§
Source§impl ListApiKeysOptions
impl ListApiKeysOptions
Sourcepub fn builder() -> ListApiKeysOptionsBuilder
pub fn builder() -> ListApiKeysOptionsBuilder
Create an instance of ListApiKeysOptions using the builder syntax
Trait Implementations§
Source§impl Clone for ListApiKeysOptions
impl Clone for ListApiKeysOptions
Source§fn clone(&self) -> ListApiKeysOptions
fn clone(&self) -> ListApiKeysOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListApiKeysOptions
impl Debug for ListApiKeysOptions
Source§impl Default for ListApiKeysOptions
impl Default for ListApiKeysOptions
Source§fn default() -> ListApiKeysOptions
fn default() -> ListApiKeysOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListApiKeysOptions
impl PartialEq for ListApiKeysOptions
Source§fn eq(&self, other: &ListApiKeysOptions) -> bool
fn eq(&self, other: &ListApiKeysOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ListApiKeysOptions
impl StructuralPartialEq for ListApiKeysOptions
Auto Trait Implementations§
impl Freeze for ListApiKeysOptions
impl RefUnwindSafe for ListApiKeysOptions
impl Send for ListApiKeysOptions
impl Sync for ListApiKeysOptions
impl Unpin for ListApiKeysOptions
impl UnsafeUnpin for ListApiKeysOptions
impl UnwindSafe for ListApiKeysOptions
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