pub struct PermissionsToml {
pub rules: Vec<ToolAskRule>,
}Expand description
Sibling permissions.toml schema.
This slice is intentionally ask-only: each rule is a typed condition that means “ask before this tool invocation.” Typed allow/deny records and UI actions are expected to land in follow-up PRs.
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§fn eq(&self, other: &PermissionsToml) -> bool
fn eq(&self, other: &PermissionsToml) -> bool
Tests for
self and other values to be equal, and is used by ==.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.