#[non_exhaustive]pub struct ImportResourceSpecification {
pub bot_import_specification: Option<BotImportSpecification>,
pub bot_locale_import_specification: Option<BotLocaleImportSpecification>,
pub custom_vocabulary_import_specification: Option<CustomVocabularyImportSpecification>,
pub test_set_import_resource_specification: Option<TestSetImportResourceSpecification>,
}
Expand description
Provides information about the bot or bot locale that you want to import. You can specify the botImportSpecification
or the botLocaleImportSpecification
, but not both.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bot_import_specification: Option<BotImportSpecification>
Parameters for importing a bot.
bot_locale_import_specification: Option<BotLocaleImportSpecification>
Parameters for importing a bot locale.
custom_vocabulary_import_specification: Option<CustomVocabularyImportSpecification>
Provides the parameters required for importing a custom vocabulary.
test_set_import_resource_specification: Option<TestSetImportResourceSpecification>
Specifications for the test set that is imported.
Implementations§
source§impl ImportResourceSpecification
impl ImportResourceSpecification
sourcepub fn bot_import_specification(&self) -> Option<&BotImportSpecification>
pub fn bot_import_specification(&self) -> Option<&BotImportSpecification>
Parameters for importing a bot.
sourcepub fn bot_locale_import_specification(
&self
) -> Option<&BotLocaleImportSpecification>
pub fn bot_locale_import_specification( &self ) -> Option<&BotLocaleImportSpecification>
Parameters for importing a bot locale.
sourcepub fn custom_vocabulary_import_specification(
&self
) -> Option<&CustomVocabularyImportSpecification>
pub fn custom_vocabulary_import_specification( &self ) -> Option<&CustomVocabularyImportSpecification>
Provides the parameters required for importing a custom vocabulary.
sourcepub fn test_set_import_resource_specification(
&self
) -> Option<&TestSetImportResourceSpecification>
pub fn test_set_import_resource_specification( &self ) -> Option<&TestSetImportResourceSpecification>
Specifications for the test set that is imported.
source§impl ImportResourceSpecification
impl ImportResourceSpecification
sourcepub fn builder() -> ImportResourceSpecificationBuilder
pub fn builder() -> ImportResourceSpecificationBuilder
Creates a new builder-style object to manufacture ImportResourceSpecification
.
Trait Implementations§
source§impl Clone for ImportResourceSpecification
impl Clone for ImportResourceSpecification
source§fn clone(&self) -> ImportResourceSpecification
fn clone(&self) -> ImportResourceSpecification
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 ImportResourceSpecification
impl Debug for ImportResourceSpecification
source§impl PartialEq for ImportResourceSpecification
impl PartialEq for ImportResourceSpecification
source§fn eq(&self, other: &ImportResourceSpecification) -> bool
fn eq(&self, other: &ImportResourceSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportResourceSpecification
Auto Trait Implementations§
impl Freeze for ImportResourceSpecification
impl RefUnwindSafe for ImportResourceSpecification
impl Send for ImportResourceSpecification
impl Sync for ImportResourceSpecification
impl Unpin for ImportResourceSpecification
impl UnwindSafe for ImportResourceSpecification
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.