pub struct Gates {
pub path_matches: Vec<String>,
pub path_not_matches: Vec<String>,
pub file_contains: Vec<String>,
pub file_not_contains: Vec<String>,
}Expand description
The gates a rule declares, as written in config.
Fields§
§path_matches: Vec<String>Only files matching one of these are considered.
path_not_matches: Vec<String>Files matching any of these are skipped.
file_contains: Vec<String>Only files whose bytes contain all of these are parsed.
file_not_contains: Vec<String>Files whose bytes contain any of these are skipped.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gates
impl<'de> Deserialize<'de> for Gates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Gates
impl StructuralPartialEq for Gates
Auto Trait Implementations§
impl Freeze for Gates
impl RefUnwindSafe for Gates
impl Send for Gates
impl Sync for Gates
impl Unpin for Gates
impl UnsafeUnpin for Gates
impl UnwindSafe for Gates
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