pub struct MatchSpec {
pub exe: Vec<String>,
pub name: Vec<String>,
pub script: Vec<String>,
pub cmdline: Vec<String>,
pub env: Vec<String>,
pub cwd: Vec<String>,
pub bundle: Vec<String>,
pub cgroup: Vec<String>,
}Expand description
Identity match fields of a rule.
Fields§
§exe: Vec<String>Globs against the executable path, its basename and argv[0] (e.g. “claude”, “**/bin/sd-server”).
name: Vec<String>Globs against the short process name (comm).
script: Vec<String>Globs against any argv element after argv[0] (node/python scripts, java main classes).
cmdline: Vec<String>Regexes against the space-joined command line.
env: Vec<String>Marker keys (must be in the allowlist); groups carriers into the rule’s session. Not an identity match.
cwd: Vec<String>Globs against cwd.
bundle: Vec<String>Globs against the macOS bundle id.
cgroup: Vec<String>Globs against the Linux cgroup path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchSpec
impl<'de> Deserialize<'de> for MatchSpec
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 MatchSpec
impl StructuralPartialEq for MatchSpec
Auto Trait Implementations§
impl Forget for MatchSpec
impl Freeze for MatchSpec
impl Move for MatchSpec
impl RefUnwindSafe for MatchSpec
impl Send for MatchSpecwhere
RawVecInner: Send,
impl Sync for MatchSpecwhere
RawVecInner: Sync,
impl Unpin for MatchSpec
impl UnsafeUnpin for MatchSpec
impl UnwindSafe for MatchSpecwhere
RawVecInner: UnwindSafe,
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