Struct hcklib::core::CoreConfigBuilder
source · pub struct CoreConfigBuilder<'a> { /* private fields */ }
Expand description
A builder for the CoreConfig
which drives Core
.
Implementations§
source§impl<'a> CoreConfigBuilder<'a>
impl<'a> CoreConfigBuilder<'a>
pub fn new() -> Self
pub fn build(self) -> Result<CoreConfig<'a>>
sourcepub fn output_delimiter(self, delim: &'a [u8]) -> Self
pub fn output_delimiter(self, delim: &'a [u8]) -> Self
The substr to use as the output delimiter
sourcepub fn line_terminator(self, term: LineTerminator) -> Self
pub fn line_terminator(self, term: LineTerminator) -> Self
The line terminator to use when looking for linebreaks and stripping linebreach chars.
sourcepub fn mmap(self, mmap_choice: MmapChoice) -> Self
pub fn mmap(self, mmap_choice: MmapChoice) -> Self
Whether or not to try to use mmap mode
sourcepub fn is_regex_parser(self, is_regex: bool) -> Self
pub fn is_regex_parser(self, is_regex: bool) -> Self
Whether or not the parser is a regex
sourcepub fn try_decompress(self, try_decompress: bool) -> Self
pub fn try_decompress(self, try_decompress: bool) -> Self
Try to decompress an input file
sourcepub fn exclude_headers(self, exclude_headers: Option<&'a [Regex]>) -> Self
pub fn exclude_headers(self, exclude_headers: Option<&'a [Regex]>) -> Self
The raw user input headers to exclude
sourcepub fn header_is_regex(self, header_is_regex: bool) -> Self
pub fn header_is_regex(self, header_is_regex: bool) -> Self
Whether or not to treat the headers as regex
Trait Implementations§
source§impl<'a> Clone for CoreConfigBuilder<'a>
impl<'a> Clone for CoreConfigBuilder<'a>
source§fn clone(&self) -> CoreConfigBuilder<'a>
fn clone(&self) -> CoreConfigBuilder<'a>
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 more