pub enum AllowedTools {
List(Vec<String>),
Filter(McpAllowedToolsFilter),
}
Expand description
Allowed tools configuration for MCP.
Variants§
List(Vec<String>)
A flat list of allowed tool names.
Filter(McpAllowedToolsFilter)
A filter object specifying allowed tools.
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<'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 PartialEq for AllowedTools
impl PartialEq for AllowedTools
Source§impl Serialize for AllowedTools
impl Serialize 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