pub struct ParserConfig {
pub files: Option<Vec<String>>,
pub command: Option<String>,
pub timeout: Option<u64>,
pub options: Option<Value>,
}Expand description
Configuration for a single parser under [parsers].
Supports shorthand (markdown = true) and expanded table form
([parsers.markdown] with fields). Parser-specific options go
under [parsers.<name>.options] and are passed through to the parser.
Fields§
§files: Option<Vec<String>>Which File nodes to send to this parser. None = all File nodes.
command: Option<String>§timeout: Option<u64>§options: Option<Value>Arbitrary options passed through to the parser (not interpreted by drft).
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
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 Debug for ParserConfig
impl Debug for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin for ParserConfig
impl UnwindSafe for ParserConfig
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