pub struct ScriptParser {
pub parser_name: String,
pub file_filter: Option<GlobSet>,
pub command: String,
pub timeout_ms: u64,
pub scope_dir: PathBuf,
pub options: Option<Value>,
}Expand description
Script-based parser. Runs an external command that receives a JSON options envelope on line 1, then file paths (one per line) on stdin, and emits NDJSON links on stdout.
Fields§
§parser_name: String§file_filter: Option<GlobSet>File routing filter. None = receives all File nodes.
command: String§timeout_ms: u64§scope_dir: PathBuf§options: Option<Value>Parser options from [parsers.<name>.options]. Sent as JSON on stdin line 1.
Trait Implementations§
Source§impl Parser for ScriptParser
impl Parser for ScriptParser
Source§fn parse(&self, path: &str, _content: &str) -> ParseResult
fn parse(&self, path: &str, _content: &str) -> ParseResult
Parse a file’s content and return discovered links + optional metadata.
Source§fn parse_batch(&self, files: &[(&str, &str)]) -> HashMap<String, ParseResult>
fn parse_batch(&self, files: &[(&str, &str)]) -> HashMap<String, ParseResult>
Parse multiple files in one call. Default falls back to per-file parsing.
Script parsers override this to spawn one process for all files.
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