#[non_exhaustive]pub struct ImportApiKeysInput {
pub body: Option<Blob>,
pub format: Option<ApiKeysFormat>,
pub fail_on_warnings: Option<bool>,
}Expand description
The POST request to import API keys from an external source, such as a CSV-formatted file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: Option<Blob>The payload of the POST request to import API keys. For the payload format, see API Key File Format.
format: Option<ApiKeysFormat>A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.
fail_on_warnings: Option<bool>A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.
Implementations§
source§impl ImportApiKeysInput
impl ImportApiKeysInput
sourcepub fn body(&self) -> Option<&Blob>
pub fn body(&self) -> Option<&Blob>
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
sourcepub fn format(&self) -> Option<&ApiKeysFormat>
pub fn format(&self) -> Option<&ApiKeysFormat>
A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.
sourcepub fn fail_on_warnings(&self) -> Option<bool>
pub fn fail_on_warnings(&self) -> Option<bool>
A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.
source§impl ImportApiKeysInput
impl ImportApiKeysInput
sourcepub fn builder() -> ImportApiKeysInputBuilder
pub fn builder() -> ImportApiKeysInputBuilder
Creates a new builder-style object to manufacture ImportApiKeysInput.
Trait Implementations§
source§impl Clone for ImportApiKeysInput
impl Clone for ImportApiKeysInput
source§fn clone(&self) -> ImportApiKeysInput
fn clone(&self) -> ImportApiKeysInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ImportApiKeysInput
impl Debug for ImportApiKeysInput
source§impl PartialEq for ImportApiKeysInput
impl PartialEq for ImportApiKeysInput
source§fn eq(&self, other: &ImportApiKeysInput) -> bool
fn eq(&self, other: &ImportApiKeysInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ImportApiKeysInput
Auto Trait Implementations§
impl Freeze for ImportApiKeysInput
impl RefUnwindSafe for ImportApiKeysInput
impl Send for ImportApiKeysInput
impl Sync for ImportApiKeysInput
impl Unpin for ImportApiKeysInput
impl UnwindSafe for ImportApiKeysInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more