pub struct PermissionsToml {
pub rules: Vec<ToolAskRule>,
}Expand description
Sibling permissions.toml schema.
Each rule is a typed condition that can deny, allow, or ask before a tool invocation. The approval card persists ask rules and narrowly scoped, exact allow grants; deny rules remain manually authored.
Fields§
§rules: Vec<ToolAskRule>Implementations§
Trait Implementations§
Source§impl Clone for PermissionsToml
impl Clone for PermissionsToml
Source§fn clone(&self) -> PermissionsToml
fn clone(&self) -> PermissionsToml
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionsToml
impl Debug for PermissionsToml
Source§impl Default for PermissionsToml
impl Default for PermissionsToml
Source§fn default() -> PermissionsToml
fn default() -> PermissionsToml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionsToml
impl<'de> Deserialize<'de> for PermissionsToml
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 PermissionsToml
Source§impl PartialEq for PermissionsToml
impl PartialEq for PermissionsToml
Source§impl Serialize for PermissionsToml
impl Serialize for PermissionsToml
impl StructuralPartialEq for PermissionsToml
Auto Trait Implementations§
impl Freeze for PermissionsToml
impl RefUnwindSafe for PermissionsToml
impl Send for PermissionsToml
impl Sync for PermissionsToml
impl Unpin for PermissionsToml
impl UnsafeUnpin for PermissionsToml
impl UnwindSafe for PermissionsToml
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.