pub struct SecurityGetApiKey<'a, 'b> { /* private fields */ }
Expand description
Builder for the Security Get Api Key API
Retrieves information for one or more API keys.
Implementations§
Source§impl<'a, 'b> SecurityGetApiKey<'a, 'b>
impl<'a, 'b> SecurityGetApiKey<'a, 'b>
Sourcepub fn new(transport: &'a Transport) -> Self
pub fn new(transport: &'a Transport) -> Self
Creates a new instance of SecurityGetApiKey
Sourcepub fn active_only(self, active_only: bool) -> Self
pub fn active_only(self, active_only: bool) -> Self
flag to limit response to only active (not invalidated or expired) API keys
Sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
Sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn owner(self, owner: bool) -> Self
pub fn owner(self, owner: bool) -> Self
flag to query API keys owned by the currently authenticated user
Sourcepub fn realm_name(self, realm_name: &'b str) -> Self
pub fn realm_name(self, realm_name: &'b str) -> Self
realm name of the user who created this API key to be retrieved
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
Sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Sourcepub fn username(self, username: &'b str) -> Self
pub fn username(self, username: &'b str) -> Self
user name of the user who created this API key to be retrieved
Sourcepub fn with_limited_by(self, with_limited_by: bool) -> Self
pub fn with_limited_by(self, with_limited_by: bool) -> Self
flag to show the limited-by role descriptors of API Keys
Sourcepub fn with_profile_uid(self, with_profile_uid: bool) -> Self
pub fn with_profile_uid(self, with_profile_uid: bool) -> Self
flag to also retrieve the API Key’s owner profile uid, if it exists
Trait Implementations§
Source§impl<'a, 'b> Clone for SecurityGetApiKey<'a, 'b>
impl<'a, 'b> Clone for SecurityGetApiKey<'a, 'b>
Source§fn clone(&self) -> SecurityGetApiKey<'a, 'b>
fn clone(&self) -> SecurityGetApiKey<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more