#[non_exhaustive]pub struct CreateAdapterInput {
pub adapter_name: Option<String>,
pub client_request_token: Option<String>,
pub description: Option<String>,
pub feature_types: Option<Vec<FeatureType>>,
pub auto_update: Option<AutoUpdate>,
pub tags: Option<HashMap<String, String>>,
}
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.adapter_name: Option<String>
The name to be assigned to the adapter being created.
client_request_token: Option<String>
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapter requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
description: Option<String>
The description to be assigned to the adapter being created.
feature_types: Option<Vec<FeatureType>>
The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES
auto_update: Option<AutoUpdate>
Controls whether or not the adapter should automatically update.
A list of tags to be added to the adapter.
Implementations§
source§impl CreateAdapterInput
impl CreateAdapterInput
sourcepub fn adapter_name(&self) -> Option<&str>
pub fn adapter_name(&self) -> Option<&str>
The name to be assigned to the adapter being created.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapter requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description to be assigned to the adapter being created.
sourcepub fn feature_types(&self) -> &[FeatureType]
pub fn feature_types(&self) -> &[FeatureType]
The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .feature_types.is_none()
.
sourcepub fn auto_update(&self) -> Option<&AutoUpdate>
pub fn auto_update(&self) -> Option<&AutoUpdate>
Controls whether or not the adapter should automatically update.
A list of tags to be added to the adapter.
source§impl CreateAdapterInput
impl CreateAdapterInput
sourcepub fn builder() -> CreateAdapterInputBuilder
pub fn builder() -> CreateAdapterInputBuilder
Creates a new builder-style object to manufacture CreateAdapterInput
.
Trait Implementations§
source§impl Clone for CreateAdapterInput
impl Clone for CreateAdapterInput
source§fn clone(&self) -> CreateAdapterInput
fn clone(&self) -> CreateAdapterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAdapterInput
impl Debug for CreateAdapterInput
source§impl PartialEq for CreateAdapterInput
impl PartialEq for CreateAdapterInput
source§fn eq(&self, other: &CreateAdapterInput) -> bool
fn eq(&self, other: &CreateAdapterInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAdapterInput
Auto Trait Implementations§
impl Freeze for CreateAdapterInput
impl RefUnwindSafe for CreateAdapterInput
impl Send for CreateAdapterInput
impl Sync for CreateAdapterInput
impl Unpin for CreateAdapterInput
impl UnwindSafe for CreateAdapterInput
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