#[non_exhaustive]pub struct OpenSearchServerlessFieldMappingBuilder { /* private fields */ }Expand description
A builder for OpenSearchServerlessFieldMapping.
Implementations§
source§impl OpenSearchServerlessFieldMappingBuilder
impl OpenSearchServerlessFieldMappingBuilder
sourcepub fn vector_field(self, input: impl Into<String>) -> Self
pub fn vector_field(self, input: impl Into<String>) -> Self
Name of the field This field is required.
sourcepub fn set_vector_field(self, input: Option<String>) -> Self
pub fn set_vector_field(self, input: Option<String>) -> Self
Name of the field
sourcepub fn get_vector_field(&self) -> &Option<String>
pub fn get_vector_field(&self) -> &Option<String>
Name of the field
sourcepub fn text_field(self, input: impl Into<String>) -> Self
pub fn text_field(self, input: impl Into<String>) -> Self
Name of the field This field is required.
sourcepub fn set_text_field(self, input: Option<String>) -> Self
pub fn set_text_field(self, input: Option<String>) -> Self
Name of the field
sourcepub fn get_text_field(&self) -> &Option<String>
pub fn get_text_field(&self) -> &Option<String>
Name of the field
sourcepub fn metadata_field(self, input: impl Into<String>) -> Self
pub fn metadata_field(self, input: impl Into<String>) -> Self
Name of the field This field is required.
sourcepub fn set_metadata_field(self, input: Option<String>) -> Self
pub fn set_metadata_field(self, input: Option<String>) -> Self
Name of the field
sourcepub fn get_metadata_field(&self) -> &Option<String>
pub fn get_metadata_field(&self) -> &Option<String>
Name of the field
sourcepub fn build(self) -> Result<OpenSearchServerlessFieldMapping, BuildError>
pub fn build(self) -> Result<OpenSearchServerlessFieldMapping, BuildError>
Consumes the builder and constructs a OpenSearchServerlessFieldMapping.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpenSearchServerlessFieldMappingBuilder
impl Clone for OpenSearchServerlessFieldMappingBuilder
source§fn clone(&self) -> OpenSearchServerlessFieldMappingBuilder
fn clone(&self) -> OpenSearchServerlessFieldMappingBuilder
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 Default for OpenSearchServerlessFieldMappingBuilder
impl Default for OpenSearchServerlessFieldMappingBuilder
source§fn default() -> OpenSearchServerlessFieldMappingBuilder
fn default() -> OpenSearchServerlessFieldMappingBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OpenSearchServerlessFieldMappingBuilder
impl PartialEq for OpenSearchServerlessFieldMappingBuilder
source§fn eq(&self, other: &OpenSearchServerlessFieldMappingBuilder) -> bool
fn eq(&self, other: &OpenSearchServerlessFieldMappingBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpenSearchServerlessFieldMappingBuilder
Auto Trait Implementations§
impl RefUnwindSafe for OpenSearchServerlessFieldMappingBuilder
impl Send for OpenSearchServerlessFieldMappingBuilder
impl Sync for OpenSearchServerlessFieldMappingBuilder
impl Unpin for OpenSearchServerlessFieldMappingBuilder
impl UnwindSafe for OpenSearchServerlessFieldMappingBuilder
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.