pub struct CorpusRule {
pub include: Vec<String>,
pub exclude: Vec<String>,
pub contract: Contract,
pub name: Option<String>,
}Expand description
One routing rule: the files that match include and not exclude are checked
against contract.
Fields§
§include: Vec<String>Globs relative to the run root. A file must match at least one.
exclude: Vec<String>Globs that take a file out of the rule.
contract: ContractThe contract that checks the matched files.
name: Option<String>The contract’s name when the config refers to it by a string, for a host to print. The runner does not route on it.
Auto Trait Implementations§
impl !RefUnwindSafe for CorpusRule
impl !Send for CorpusRule
impl !Sync for CorpusRule
impl !UnwindSafe for CorpusRule
impl Freeze for CorpusRule
impl Unpin for CorpusRule
impl UnsafeUnpin for CorpusRule
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