pub enum ToolNature {
Read,
Write,
Execute,
Network,
Internal,
}Expand description
Categorizes a tool by its operational nature for permission decisions.
Variants§
Read
Read-only: inspects files/code without side effects.
Write
Writes or modifies files.
Execute
Executes external processes or commands.
Network
Makes network requests (HTTP, API calls).
Internal
Session-internal plumbing (todo list, scratch state). Always allowed.
Trait Implementations§
Source§impl Clone for ToolNature
impl Clone for ToolNature
Source§fn clone(&self) -> ToolNature
fn clone(&self) -> ToolNature
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 moreimpl Copy for ToolNature
Source§impl Debug for ToolNature
impl Debug for ToolNature
Source§impl Default for ToolNature
impl Default for ToolNature
Source§fn default() -> ToolNature
fn default() -> ToolNature
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolNature
impl<'de> Deserialize<'de> for ToolNature
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 ToolNature
Source§impl JsonSchema for ToolNature
impl JsonSchema for ToolNature
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolNature
impl PartialEq for ToolNature
Source§impl Serialize for ToolNature
impl Serialize for ToolNature
impl StructuralPartialEq for ToolNature
Auto Trait Implementations§
impl Freeze for ToolNature
impl RefUnwindSafe for ToolNature
impl Send for ToolNature
impl Sync for ToolNature
impl Unpin for ToolNature
impl UnsafeUnpin for ToolNature
impl UnwindSafe for ToolNature
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