pub struct ScriptParser {
pub parser_name: String,
pub glob: GlobMatcher,
pub type_filter: Option<Vec<String>>,
pub command: String,
pub timeout_ms: u64,
}Expand description
Script-based parser. Runs an external command that receives the file path on stdin and emits NDJSON links on stdout.
Fields§
§parser_name: String§glob: GlobMatcher§type_filter: Option<Vec<String>>§command: String§timeout_ms: u64Trait Implementations§
Source§impl Parser for ScriptParser
impl Parser for ScriptParser
Auto Trait Implementations§
impl Freeze for ScriptParser
impl RefUnwindSafe for ScriptParser
impl Send for ScriptParser
impl Sync for ScriptParser
impl Unpin for ScriptParser
impl UnsafeUnpin for ScriptParser
impl UnwindSafe for ScriptParser
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