Struct elasticsearch::security::SecurityCreateServiceToken [−][src]
pub struct SecurityCreateServiceToken<'a, 'b, B> { /* fields omitted */ }
Expand description
Builder for the Security Create Service Token API
Creates a service account token for access without requiring basic authentication.
Optional, beta
This requires the beta-apis
feature. On track to become stable but breaking changes can
happen in minor versions.
Implementations
Creates a new instance of SecurityCreateServiceToken with the specified API parts
pub fn body<T>(self, body: T) -> SecurityCreateServiceToken<'a, 'b, JsonBody<T>> where
T: Serialize,
pub fn body<T>(self, body: T) -> SecurityCreateServiceToken<'a, 'b, JsonBody<T>> where
T: Serialize,
The body for the API call
Include the stack trace of returned errors.
A comma-separated list of filters used to reduce the response.
Adds a HTTP header
If true
then refresh the affected shards to make this operation visible to search, if wait_for
(the default) then wait for a refresh to make this operation visible to search, if false
then do nothing with refreshes.
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Trait Implementations
Auto Trait Implementations
impl<'a, 'b, B> !RefUnwindSafe for SecurityCreateServiceToken<'a, 'b, B>
impl<'a, 'b, B> Send for SecurityCreateServiceToken<'a, 'b, B> where
B: Send,
impl<'a, 'b, B> Sync for SecurityCreateServiceToken<'a, 'b, B> where
B: Sync,
impl<'a, 'b, B> Unpin for SecurityCreateServiceToken<'a, 'b, B> where
B: Unpin,
impl<'a, 'b, B> !UnwindSafe for SecurityCreateServiceToken<'a, 'b, B>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more