pub struct PermissionRuleEntry {
pub tool: String,
pub action: RuleBehavior,
pub matching: GrantMatch,
}Expand description
One rule string of a settings file’s permissions block, with the list it
was written in: allow, ask and deny give the action, allow_exact
an allow whose content matches only the same text.
Fields§
§tool: StringAs written: Bash, Bash(git push:*), mcp__srv__tool.
action: RuleBehavior§matching: GrantMatchTrait Implementations§
Source§impl Clone for PermissionRuleEntry
impl Clone for PermissionRuleEntry
Source§impl Debug for PermissionRuleEntry
impl Debug for PermissionRuleEntry
impl Eq for PermissionRuleEntry
Source§impl PartialEq for PermissionRuleEntry
impl PartialEq for PermissionRuleEntry
impl StructuralPartialEq for PermissionRuleEntry
Auto Trait Implementations§
impl Forget for PermissionRuleEntry
impl Freeze for PermissionRuleEntry
impl Move for PermissionRuleEntry
impl RefUnwindSafe for PermissionRuleEntry
impl Send for PermissionRuleEntry
impl Sync for PermissionRuleEntry
impl Unpin for PermissionRuleEntry
impl UnsafeUnpin for PermissionRuleEntry
impl UnwindSafe for PermissionRuleEntry
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