Struct aws_sdk_lexmodelsv2::types::GrammarSlotTypeSource
source · #[non_exhaustive]pub struct GrammarSlotTypeSource {
pub s3_bucket_name: String,
pub s3_object_key: String,
pub kms_key_arn: Option<String>,
}Expand description
Describes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.
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.s3_bucket_name: StringThe name of the Amazon S3 bucket that contains the grammar source.
s3_object_key: StringThe path to the grammar in the Amazon S3 bucket.
kms_key_arn: Option<String>The KMS key required to decrypt the contents of the grammar, if any.
Implementations§
source§impl GrammarSlotTypeSource
impl GrammarSlotTypeSource
sourcepub fn s3_bucket_name(&self) -> &str
pub fn s3_bucket_name(&self) -> &str
The name of the Amazon S3 bucket that contains the grammar source.
sourcepub fn s3_object_key(&self) -> &str
pub fn s3_object_key(&self) -> &str
The path to the grammar in the Amazon S3 bucket.
sourcepub fn kms_key_arn(&self) -> Option<&str>
pub fn kms_key_arn(&self) -> Option<&str>
The KMS key required to decrypt the contents of the grammar, if any.
source§impl GrammarSlotTypeSource
impl GrammarSlotTypeSource
sourcepub fn builder() -> GrammarSlotTypeSourceBuilder
pub fn builder() -> GrammarSlotTypeSourceBuilder
Creates a new builder-style object to manufacture GrammarSlotTypeSource.
Trait Implementations§
source§impl Clone for GrammarSlotTypeSource
impl Clone for GrammarSlotTypeSource
source§fn clone(&self) -> GrammarSlotTypeSource
fn clone(&self) -> GrammarSlotTypeSource
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 GrammarSlotTypeSource
impl Debug for GrammarSlotTypeSource
source§impl PartialEq for GrammarSlotTypeSource
impl PartialEq for GrammarSlotTypeSource
source§fn eq(&self, other: &GrammarSlotTypeSource) -> bool
fn eq(&self, other: &GrammarSlotTypeSource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrammarSlotTypeSource
Auto Trait Implementations§
impl Freeze for GrammarSlotTypeSource
impl RefUnwindSafe for GrammarSlotTypeSource
impl Send for GrammarSlotTypeSource
impl Sync for GrammarSlotTypeSource
impl Unpin for GrammarSlotTypeSource
impl UnwindSafe for GrammarSlotTypeSource
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>
Creates a shared type from an unshared type.