pub struct ApiKeyListBuilder { /* private fields */ }Expand description
Builder for ApiKeyListRequest.
Implementations§
Source§impl ApiKeyListBuilder
impl ApiKeyListBuilder
Sourcepub fn before_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn before_id<VALUE: Into<String>>(self, value: VALUE) -> Self
ID of the object to use as a cursor for pagination (previous page)
Sourcepub fn after_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn after_id<VALUE: Into<String>>(self, value: VALUE) -> Self
ID of the object to use as a cursor for pagination (next page)
Sourcepub fn limit<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn limit<VALUE: Into<u32>>(self, value: VALUE) -> Self
Number of items to return per page (1-1000)
Sourcepub fn status<VALUE: Into<ApiKeyStatus>>(self, value: VALUE) -> Self
pub fn status<VALUE: Into<ApiKeyStatus>>(self, value: VALUE) -> Self
Filter by API key status
Sourcepub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
Filter by Workspace ID
Sourcepub fn created_by_user_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn created_by_user_id<VALUE: Into<String>>(self, value: VALUE) -> Self
Filter by the ID of the User who created the object
Sourcepub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
pub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
Credentials for authentication (not serialized)
Sourcepub fn build(self) -> Result<ApiKeyListRequest, ApiKeyListBuilderError>
pub fn build(self) -> Result<ApiKeyListRequest, ApiKeyListBuilderError>
Source§impl ApiKeyListBuilder
impl ApiKeyListBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<ApiKeyList>
pub async fn create(self) -> ApiResponseOrError<ApiKeyList>
Creates a new API key list request and returns the response.
This is a convenience method that builds the request from the builder and sends it to the API Keys API.
§Example
let credentials = Credentials::from_env();
let api_keys = ApiKeyList::builder()
.credentials(credentials)
.limit(10u32)
.create()
.await?;Trait Implementations§
Source§impl Clone for ApiKeyListBuilder
impl Clone for ApiKeyListBuilder
Source§fn clone(&self) -> ApiKeyListBuilder
fn clone(&self) -> ApiKeyListBuilder
Returns a copy of the value. Read more
1.0.0 · 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 ApiKeyListBuilder
impl Debug for ApiKeyListBuilder
Source§impl Default for ApiKeyListBuilder
impl Default for ApiKeyListBuilder
Source§impl PartialEq for ApiKeyListBuilder
impl PartialEq for ApiKeyListBuilder
impl StructuralPartialEq for ApiKeyListBuilder
Auto Trait Implementations§
impl Freeze for ApiKeyListBuilder
impl RefUnwindSafe for ApiKeyListBuilder
impl Send for ApiKeyListBuilder
impl Sync for ApiKeyListBuilder
impl Unpin for ApiKeyListBuilder
impl UnwindSafe for ApiKeyListBuilder
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