#[non_exhaustive]pub struct RedisEnterpriseCloudFieldMapping {
pub vector_field: String,
pub text_field: String,
pub metadata_field: String,
}Expand description
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
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.vector_field: StringName of the field
text_field: StringName of the field
metadata_field: StringName of the field
Implementations§
source§impl RedisEnterpriseCloudFieldMapping
impl RedisEnterpriseCloudFieldMapping
sourcepub fn vector_field(&self) -> &str
pub fn vector_field(&self) -> &str
Name of the field
sourcepub fn text_field(&self) -> &str
pub fn text_field(&self) -> &str
Name of the field
sourcepub fn metadata_field(&self) -> &str
pub fn metadata_field(&self) -> &str
Name of the field
source§impl RedisEnterpriseCloudFieldMapping
impl RedisEnterpriseCloudFieldMapping
sourcepub fn builder() -> RedisEnterpriseCloudFieldMappingBuilder
pub fn builder() -> RedisEnterpriseCloudFieldMappingBuilder
Creates a new builder-style object to manufacture RedisEnterpriseCloudFieldMapping.
Trait Implementations§
source§impl Clone for RedisEnterpriseCloudFieldMapping
impl Clone for RedisEnterpriseCloudFieldMapping
source§fn clone(&self) -> RedisEnterpriseCloudFieldMapping
fn clone(&self) -> RedisEnterpriseCloudFieldMapping
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 RedisEnterpriseCloudFieldMapping
impl PartialEq for RedisEnterpriseCloudFieldMapping
source§fn eq(&self, other: &RedisEnterpriseCloudFieldMapping) -> bool
fn eq(&self, other: &RedisEnterpriseCloudFieldMapping) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RedisEnterpriseCloudFieldMapping
Auto Trait Implementations§
impl RefUnwindSafe for RedisEnterpriseCloudFieldMapping
impl Send for RedisEnterpriseCloudFieldMapping
impl Sync for RedisEnterpriseCloudFieldMapping
impl Unpin for RedisEnterpriseCloudFieldMapping
impl UnwindSafe for RedisEnterpriseCloudFieldMapping
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.