#[non_exhaustive]pub struct OpenSearchServerlessConfiguration {
pub collection_arn: String,
pub vector_index_name: String,
pub field_mapping: Option<OpenSearchServerlessFieldMapping>,
}Expand description
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
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.collection_arn: StringArn of an OpenSearch Serverless collection.
vector_index_name: StringArn of an OpenSearch Serverless index.
field_mapping: Option<OpenSearchServerlessFieldMapping>A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
Implementations§
source§impl OpenSearchServerlessConfiguration
impl OpenSearchServerlessConfiguration
sourcepub fn collection_arn(&self) -> &str
pub fn collection_arn(&self) -> &str
Arn of an OpenSearch Serverless collection.
sourcepub fn vector_index_name(&self) -> &str
pub fn vector_index_name(&self) -> &str
Arn of an OpenSearch Serverless index.
sourcepub fn field_mapping(&self) -> Option<&OpenSearchServerlessFieldMapping>
pub fn field_mapping(&self) -> Option<&OpenSearchServerlessFieldMapping>
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
source§impl OpenSearchServerlessConfiguration
impl OpenSearchServerlessConfiguration
sourcepub fn builder() -> OpenSearchServerlessConfigurationBuilder
pub fn builder() -> OpenSearchServerlessConfigurationBuilder
Creates a new builder-style object to manufacture OpenSearchServerlessConfiguration.
Trait Implementations§
source§impl Clone for OpenSearchServerlessConfiguration
impl Clone for OpenSearchServerlessConfiguration
source§fn clone(&self) -> OpenSearchServerlessConfiguration
fn clone(&self) -> OpenSearchServerlessConfiguration
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 PartialEq for OpenSearchServerlessConfiguration
impl PartialEq for OpenSearchServerlessConfiguration
source§fn eq(&self, other: &OpenSearchServerlessConfiguration) -> bool
fn eq(&self, other: &OpenSearchServerlessConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpenSearchServerlessConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for OpenSearchServerlessConfiguration
impl Send for OpenSearchServerlessConfiguration
impl Sync for OpenSearchServerlessConfiguration
impl Unpin for OpenSearchServerlessConfiguration
impl UnwindSafe for OpenSearchServerlessConfiguration
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.