Struct elasticsearch::security::SecurityGetApiKey
source · 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
sourceimpl<'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 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
Trait Implementations
sourceimpl<'a, 'b> Clone for SecurityGetApiKey<'a, 'b>
impl<'a, 'b> Clone for SecurityGetApiKey<'a, 'b>
sourcefn clone(&self) -> SecurityGetApiKey<'a, 'b>
fn clone(&self) -> SecurityGetApiKey<'a, 'b>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more