#[non_exhaustive]pub struct ChunkingConfigurationBuilder { /* private fields */ }Expand description
A builder for ChunkingConfiguration.
Implementations§
source§impl ChunkingConfigurationBuilder
impl ChunkingConfigurationBuilder
sourcepub fn chunking_strategy(self, input: ChunkingStrategy) -> Self
pub fn chunking_strategy(self, input: ChunkingStrategy) -> Self
The type of chunking strategy This field is required.
sourcepub fn set_chunking_strategy(self, input: Option<ChunkingStrategy>) -> Self
pub fn set_chunking_strategy(self, input: Option<ChunkingStrategy>) -> Self
The type of chunking strategy
sourcepub fn get_chunking_strategy(&self) -> &Option<ChunkingStrategy>
pub fn get_chunking_strategy(&self) -> &Option<ChunkingStrategy>
The type of chunking strategy
sourcepub fn fixed_size_chunking_configuration(
self,
input: FixedSizeChunkingConfiguration
) -> Self
pub fn fixed_size_chunking_configuration( self, input: FixedSizeChunkingConfiguration ) -> Self
Configures fixed size chunking strategy
sourcepub fn set_fixed_size_chunking_configuration(
self,
input: Option<FixedSizeChunkingConfiguration>
) -> Self
pub fn set_fixed_size_chunking_configuration( self, input: Option<FixedSizeChunkingConfiguration> ) -> Self
Configures fixed size chunking strategy
sourcepub fn get_fixed_size_chunking_configuration(
&self
) -> &Option<FixedSizeChunkingConfiguration>
pub fn get_fixed_size_chunking_configuration( &self ) -> &Option<FixedSizeChunkingConfiguration>
Configures fixed size chunking strategy
sourcepub fn build(self) -> Result<ChunkingConfiguration, BuildError>
pub fn build(self) -> Result<ChunkingConfiguration, BuildError>
Consumes the builder and constructs a ChunkingConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ChunkingConfigurationBuilder
impl Clone for ChunkingConfigurationBuilder
source§fn clone(&self) -> ChunkingConfigurationBuilder
fn clone(&self) -> ChunkingConfigurationBuilder
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 ChunkingConfigurationBuilder
impl Debug for ChunkingConfigurationBuilder
source§impl Default for ChunkingConfigurationBuilder
impl Default for ChunkingConfigurationBuilder
source§fn default() -> ChunkingConfigurationBuilder
fn default() -> ChunkingConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ChunkingConfigurationBuilder
impl PartialEq for ChunkingConfigurationBuilder
source§fn eq(&self, other: &ChunkingConfigurationBuilder) -> bool
fn eq(&self, other: &ChunkingConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ChunkingConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ChunkingConfigurationBuilder
impl Send for ChunkingConfigurationBuilder
impl Sync for ChunkingConfigurationBuilder
impl Unpin for ChunkingConfigurationBuilder
impl UnwindSafe for ChunkingConfigurationBuilder
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.