pub struct ToolPolicy {
pub allow: Vec<String>,
pub deny: Vec<String>,
}Expand description
Which tools a listener exposes: the allow list (empty = all), then the deny
list, which always wins. Entries are exact names or shell-style globs
(*, ?, [a-z], [!x]).
Fields§
§allow: Vec<String>§deny: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for ToolPolicy
impl Clone for ToolPolicy
Source§impl Debug for ToolPolicy
impl Debug for ToolPolicy
Source§impl Default for ToolPolicy
impl Default for ToolPolicy
impl Eq for ToolPolicy
Source§impl PartialEq for ToolPolicy
impl PartialEq for ToolPolicy
impl StructuralPartialEq for ToolPolicy
Auto Trait Implementations§
impl Freeze for ToolPolicy
impl RefUnwindSafe for ToolPolicy
impl Send for ToolPolicy
impl Sync for ToolPolicy
impl Unpin for ToolPolicy
impl UnsafeUnpin for ToolPolicy
impl UnwindSafe for ToolPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.