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 ToolDeclwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<WantedSetting>: Freeze,
impl Move for ToolDecl
impl RefUnwindSafe for ToolDecl
impl Send for ToolDecl
impl Sync for ToolDecl
impl Unpin for ToolDecl
impl UnsafeUnpin for ToolDeclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<WantedSetting>: UnsafeUnpin,
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