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 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<'a> Debug for CoreConfigBuilder<'a>
impl<'a> Debug for CoreConfigBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for CoreConfigBuilder<'a>
impl<'a> RefUnwindSafe for CoreConfigBuilder<'a>
impl<'a> Send for CoreConfigBuilder<'a>
impl<'a> Sync for CoreConfigBuilder<'a>
impl<'a> Unpin for CoreConfigBuilder<'a>
impl<'a> UnwindSafe for CoreConfigBuilder<'a>
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