pub enum OptionsUpdateToolFilterPrecedence {
Available,
Excluded,
Unknown,
}Expand description
Controls how availableTools (allowlist) and excludedTools (denylist) combine when both are set.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Available
If availableTools is set, it is the only constraint that applies (excludedTools is ignored). Preserves CLI / pre-existing client behavior. Default.
Excluded
A tool is enabled if and only if it matches the allowlist (or the allowlist is unset) AND it does not match the denylist. Makes ‘all except X’ expressible by combining the two lists.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for OptionsUpdateToolFilterPrecedence
impl Clone for OptionsUpdateToolFilterPrecedence
Source§fn clone(&self) -> OptionsUpdateToolFilterPrecedence
fn clone(&self) -> OptionsUpdateToolFilterPrecedence
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 moreSource§impl Default for OptionsUpdateToolFilterPrecedence
impl Default for OptionsUpdateToolFilterPrecedence
Source§fn default() -> OptionsUpdateToolFilterPrecedence
fn default() -> OptionsUpdateToolFilterPrecedence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionsUpdateToolFilterPrecedence
impl<'de> Deserialize<'de> for OptionsUpdateToolFilterPrecedence
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 OptionsUpdateToolFilterPrecedence
Source§impl PartialEq for OptionsUpdateToolFilterPrecedence
impl PartialEq for OptionsUpdateToolFilterPrecedence
Source§fn eq(&self, other: &OptionsUpdateToolFilterPrecedence) -> bool
fn eq(&self, other: &OptionsUpdateToolFilterPrecedence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionsUpdateToolFilterPrecedence
Auto Trait Implementations§
impl Freeze for OptionsUpdateToolFilterPrecedence
impl RefUnwindSafe for OptionsUpdateToolFilterPrecedence
impl Send for OptionsUpdateToolFilterPrecedence
impl Sync for OptionsUpdateToolFilterPrecedence
impl Unpin for OptionsUpdateToolFilterPrecedence
impl UnsafeUnpin for OptionsUpdateToolFilterPrecedence
impl UnwindSafe for OptionsUpdateToolFilterPrecedence
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