pub struct HeavyRule {
pub program: String,
pub args: Vec<String>,
pub class: JobClass,
}Expand description
Marks a simple command as heavy when its program and arguments match.
Matching ignores case, and * matches any run of characters.
Fields§
§program: StringProgram name without directory or extension, for example cargo or python*.
args: Vec<String>Any one of these makes the command heavy; empty matches any arguments. A pattern that
starts with - matches that flag anywhere in the command; any other pattern matches
the first positional argument (the first one not starting with - or +).
class: JobClassClass the matched command needs a lease for.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeavyRule
impl<'de> Deserialize<'de> for HeavyRule
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 HeavyRule
impl StructuralPartialEq for HeavyRule
Auto Trait Implementations§
impl Forget for HeavyRule
impl Freeze for HeavyRule
impl RefUnwindSafe for HeavyRule
impl Send for HeavyRule
impl Sync for HeavyRule
impl Unpin for HeavyRule
impl UnsafeUnpin for HeavyRule
impl UnwindSafe for HeavyRule
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