pub struct PermissionRule {
pub argument: Option<String>,
pub kind: String,
}Expand description
A permission approval or denial rule matched against a tool request, identified by a rule kind with an optional argument value.
Fields§
§argument: Option<String>Argument value matched against the request, or null when the rule kind has no argument (e.g. ‘read’, ‘write’, ‘memory’).
kind: StringThe rule kind, such as Shell or GitHubMCP
Trait Implementations§
Source§impl Clone for PermissionRule
impl Clone for PermissionRule
Source§impl Debug for PermissionRule
impl Debug for PermissionRule
Source§impl Default for PermissionRule
impl Default for PermissionRule
Source§impl<'de> Deserialize<'de> for PermissionRule
impl<'de> Deserialize<'de> for PermissionRule
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
Auto Trait Implementations§
impl Freeze for PermissionRule
impl RefUnwindSafe for PermissionRule
impl Send for PermissionRule
impl Sync for PermissionRule
impl Unpin for PermissionRule
impl UnsafeUnpin for PermissionRule
impl UnwindSafe for PermissionRule
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