pub struct IngesterConfig {
pub min_chunk_size: usize,
pub max_chunk_size: usize,
pub preserve_code_blocks: bool,
pub include_frontmatter: bool,
pub markdown_extensions: Vec<String>,
}Expand description
Configuration options for the markdown ingester.
Fields§
§min_chunk_size: usizeMinimum chunk size in characters. Smaller chunks will be merged.
max_chunk_size: usizeMaximum chunk size in characters. Larger chunks will be split.
preserve_code_blocks: boolWhether to preserve code blocks as separate chunks.
include_frontmatter: boolWhether to include front-matter in the output.
markdown_extensions: Vec<String>File extensions to consider as markdown.
Trait Implementations§
Source§impl Clone for IngesterConfig
impl Clone for IngesterConfig
Source§fn clone(&self) -> IngesterConfig
fn clone(&self) -> IngesterConfig
Returns a duplicate 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 IngesterConfig
impl Debug for IngesterConfig
Auto Trait Implementations§
impl Freeze for IngesterConfig
impl RefUnwindSafe for IngesterConfig
impl Send for IngesterConfig
impl Sync for IngesterConfig
impl Unpin for IngesterConfig
impl UnsafeUnpin for IngesterConfig
impl UnwindSafe for IngesterConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request