pub struct FileSource {
pub path: String,
pub format: FileFormat,
pub event_time_field: String,
pub text_field: Option<String>,
}Expand description
Reads a file (JSONL or CSV) and emits records.
event_time_field: name of the timestamp field (RFC3339 string or epoch ms)
Fields§
§path: String§format: FileFormat§event_time_field: String§text_field: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSource
impl RefUnwindSafe for FileSource
impl Send for FileSource
impl Sync for FileSource
impl Unpin for FileSource
impl UnwindSafe for FileSource
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