pub struct Preprocessor {
pub command: String,
pub flags: Vec<String>,
pub prefix: Option<String>,
pub format: OutputFormat,
}
Expand description
An agent responsible for preprocessor orchestration.
Fields§
§command: String
The command associated with the preprocessor.
flags: Vec<String>
The collection of program options that will influence the command behavior.
prefix: Option<String>
The path to the prepended to any input argument.
format: OutputFormat
The output format of the preprocessor. Defaults to bytes.
Implementations§
Source§impl Preprocessor
impl Preprocessor
Sourcepub fn new(command: &str) -> Preprocessor
pub fn new(command: &str) -> Preprocessor
Construct a preprocessor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preprocessor
impl<'de> Deserialize<'de> for Preprocessor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Preprocessor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Preprocessor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Preprocessor
impl RefUnwindSafe for Preprocessor
impl Send for Preprocessor
impl Sync for Preprocessor
impl Unpin for Preprocessor
impl UnwindSafe for Preprocessor
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