pub struct ToolInstance {
pub name: Option<String>,
pub enabled: Option<bool>,
pub config: HashMap<String, Value>,
}Expand description
A named tool instance with configuration overrides.
Fields§
§name: Option<String>§enabled: Option<bool>§config: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ToolInstance
impl Clone for ToolInstance
Source§fn clone(&self) -> ToolInstance
fn clone(&self) -> ToolInstance
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 Debug for ToolInstance
impl Debug for ToolInstance
Source§impl Default for ToolInstance
impl Default for ToolInstance
Source§fn default() -> ToolInstance
fn default() -> ToolInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolInstancewhere
ToolInstance: Default,
impl<'de> Deserialize<'de> for ToolInstancewhere
ToolInstance: Default,
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
Auto Trait Implementations§
impl Freeze for ToolInstance
impl RefUnwindSafe for ToolInstance
impl Send for ToolInstance
impl Sync for ToolInstance
impl Unpin for ToolInstance
impl UnsafeUnpin for ToolInstance
impl UnwindSafe for ToolInstance
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