pub struct ToolDecl {
pub name: String,
pub description: String,
pub params: Value,
pub run: String,
pub network: bool,
pub settings: Vec<WantedSetting>,
}Expand description
A tool to put in a manifest.
Fields§
§name: String§description: String§params: Value§run: StringScript path inside the plugin, e.g. tools/weather.py.
network: boolThe plugin’s tools may use the internet (permissions.network; never turned off here).
settings: Vec<WantedSetting>Trait Implementations§
impl StructuralPartialEq for ToolDecl
Auto Trait Implementations§
impl Forget for ToolDecl
impl Freeze for ToolDecl
impl Move for ToolDecl
impl RefUnwindSafe for ToolDecl
impl Send for ToolDecl
impl Sync for ToolDecl
impl Unpin for ToolDecl
impl UnsafeUnpin for ToolDecl
impl UnwindSafe for ToolDecl
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