pub enum ToolAccess {
Read,
Write,
Network,
Execute,
}Expand description
How dangerous a tool call is; drives the permission gate. Mirrors byob_tools::Access.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ToolAccess
impl Clone for ToolAccess
impl Copy for ToolAccess
Source§impl Debug for ToolAccess
impl Debug for ToolAccess
Source§impl<'de> Deserialize<'de> for ToolAccess
impl<'de> Deserialize<'de> for ToolAccess
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 ToolAccess
Source§impl Hash for ToolAccess
impl Hash for ToolAccess
Source§impl Ord for ToolAccess
impl Ord for ToolAccess
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ToolAccess
impl PartialEq for ToolAccess
Source§impl PartialOrd for ToolAccess
impl PartialOrd for ToolAccess
Source§impl Serialize for ToolAccess
impl Serialize for ToolAccess
impl StructuralPartialEq for ToolAccess
Auto Trait Implementations§
impl Forget for ToolAccess
impl Freeze for ToolAccess
impl Move for ToolAccess
impl RefUnwindSafe for ToolAccess
impl Send for ToolAccess
impl Sync for ToolAccess
impl Unpin for ToolAccess
impl UnsafeUnpin for ToolAccess
impl UnwindSafe for ToolAccess
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