pub struct AllowedTools(/* private fields */);Expand description
A space-delimited list of pre-approved tools.
This is an experimental feature per the Agent Skills specification.
§Examples
use agent_skills::AllowedTools;
let tools = AllowedTools::new("Bash(git:*) Read Write");
assert_eq!(tools.as_slice().len(), 3);
assert_eq!(tools.as_slice()[0], "Bash(git:*)");
// Empty string creates empty tools
let empty = AllowedTools::new("");
assert!(empty.is_empty());Implementations§
Trait Implementations§
Source§impl Clone for AllowedTools
impl Clone for AllowedTools
Source§fn clone(&self) -> AllowedTools
fn clone(&self) -> AllowedTools
Returns a duplicate of the value. Read more
1.0.0 · 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 AllowedTools
impl Debug for AllowedTools
Source§impl Default for AllowedTools
impl Default for AllowedTools
Source§fn default() -> AllowedTools
fn default() -> AllowedTools
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllowedTools
impl<'de> Deserialize<'de> for AllowedTools
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
Source§impl Display for AllowedTools
impl Display for AllowedTools
Source§impl FromIterator<String> for AllowedTools
impl FromIterator<String> for AllowedTools
Source§impl<'a> IntoIterator for &'a AllowedTools
impl<'a> IntoIterator for &'a AllowedTools
Source§impl IntoIterator for AllowedTools
impl IntoIterator for AllowedTools
Source§impl PartialEq for AllowedTools
impl PartialEq for AllowedTools
Source§impl Serialize for AllowedTools
impl Serialize for AllowedTools
impl Eq for AllowedTools
impl StructuralPartialEq for AllowedTools
Auto Trait Implementations§
impl Freeze for AllowedTools
impl RefUnwindSafe for AllowedTools
impl Send for AllowedTools
impl Sync for AllowedTools
impl Unpin for AllowedTools
impl UnwindSafe for AllowedTools
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,
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.