pub struct CommonFileOptions {
pub path_glob_filter: Option<String>,
pub recursive_file_lookup: Option<bool>,
pub modified_before: Option<String>,
pub modified_after: Option<String>,
pub ignore_corrupt_files: Option<bool>,
pub ignore_missing_files: Option<bool>,
}
Expand description
Common file options that are shared across multiple file formats (e.g., CSV, JSON, ORC, Parquet, Text).
These options allow for file filtering and error handling during file discovery and processing.
§Fields
-
path_glob_filter
: Optional glob pattern to filter files by path. This can be used to select specific files within a directory. -
recursive_file_lookup
: Whether to recursively search for files in subdirectories. If set totrue
, the reader will search all subdirectories for matching files. -
modified_before
: An optional string specifying a cutoff date for filtering files. Files modified after this date will not be included. -
modified_after
: An optional string specifying a start date for filtering files. Only files modified after this date will be included. -
ignore_corrupt_files
: If set totrue
, the reader will skip corrupt files instead of throwing an error. This is useful in scenarios where some files may be malformed. -
ignore_missing_files
: If set totrue
, missing files (e.g., those filtered out by the glob pattern) will be ignored instead of causing an error. This is useful when running in environments where files may be missing intermittently.
Fields§
§path_glob_filter: Option<String>
§recursive_file_lookup: Option<bool>
§modified_before: Option<String>
§modified_after: Option<String>
§ignore_corrupt_files: Option<bool>
§ignore_missing_files: Option<bool>
Trait Implementations§
Source§impl Clone for CommonFileOptions
impl Clone for CommonFileOptions
Source§fn clone(&self) -> CommonFileOptions
fn clone(&self) -> CommonFileOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ConfigOpts for CommonFileOptions
impl ConfigOpts for CommonFileOptions
Source§impl Debug for CommonFileOptions
impl Debug for CommonFileOptions
Auto Trait Implementations§
impl Freeze for CommonFileOptions
impl RefUnwindSafe for CommonFileOptions
impl Send for CommonFileOptions
impl Sync for CommonFileOptions
impl Unpin for CommonFileOptions
impl UnwindSafe for CommonFileOptions
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
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>
T
in a tonic::Request