pub enum ToolTier {
Observe,
Confirm,
RequiresPin,
}Expand description
Permission tier for tools
Variants§
Observe
Tier 0: Read-only, always allowed (e.g., get_balance)
Confirm
Tier 1: Requires confirmation before execution
RequiresPin
Tier 3: Requires PIN verification (e.g., send_pix, buy_btc)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolTier
impl<'de> Deserialize<'de> for ToolTier
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 Copy for ToolTier
impl Eq for ToolTier
impl StructuralPartialEq for ToolTier
Auto Trait Implementations§
impl Freeze for ToolTier
impl RefUnwindSafe for ToolTier
impl Send for ToolTier
impl Sync for ToolTier
impl Unpin for ToolTier
impl UnwindSafe for ToolTier
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.