#[non_exhaustive]pub struct RedisEnterpriseCloudConfiguration {
pub endpoint: String,
pub vector_index_name: String,
pub credentials_secret_arn: String,
pub field_mapping: Option<RedisEnterpriseCloudFieldMapping>,
}Expand description
Contains the configurations to use Redis Enterprise Cloud 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.endpoint: StringRedis enterprise cloud endpoint
vector_index_name: StringName of a redis enterprise cloud index
credentials_secret_arn: StringArn of a SecretsManager Secret.
field_mapping: Option<RedisEnterpriseCloudFieldMapping>A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
Implementations§
source§impl RedisEnterpriseCloudConfiguration
impl RedisEnterpriseCloudConfiguration
sourcepub fn vector_index_name(&self) -> &str
pub fn vector_index_name(&self) -> &str
Name of a redis enterprise cloud index
sourcepub fn credentials_secret_arn(&self) -> &str
pub fn credentials_secret_arn(&self) -> &str
Arn of a SecretsManager Secret.
sourcepub fn field_mapping(&self) -> Option<&RedisEnterpriseCloudFieldMapping>
pub fn field_mapping(&self) -> Option<&RedisEnterpriseCloudFieldMapping>
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
source§impl RedisEnterpriseCloudConfiguration
impl RedisEnterpriseCloudConfiguration
sourcepub fn builder() -> RedisEnterpriseCloudConfigurationBuilder
pub fn builder() -> RedisEnterpriseCloudConfigurationBuilder
Creates a new builder-style object to manufacture RedisEnterpriseCloudConfiguration.
Trait Implementations§
source§impl Clone for RedisEnterpriseCloudConfiguration
impl Clone for RedisEnterpriseCloudConfiguration
source§fn clone(&self) -> RedisEnterpriseCloudConfiguration
fn clone(&self) -> RedisEnterpriseCloudConfiguration
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 RedisEnterpriseCloudConfiguration
impl PartialEq for RedisEnterpriseCloudConfiguration
source§fn eq(&self, other: &RedisEnterpriseCloudConfiguration) -> bool
fn eq(&self, other: &RedisEnterpriseCloudConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RedisEnterpriseCloudConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for RedisEnterpriseCloudConfiguration
impl Send for RedisEnterpriseCloudConfiguration
impl Sync for RedisEnterpriseCloudConfiguration
impl Unpin for RedisEnterpriseCloudConfiguration
impl UnwindSafe for RedisEnterpriseCloudConfiguration
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.