pub struct Tool {
pub image: Option<String>,
pub command: Vec<String>,
pub port: Option<u16>,
pub publish: Option<u16>,
}Expand description
A tool attached beside the environment. The built-in recipe shell (an empty block) is a
toolbox on every network: tcpdump, nmap, curl, dig, netcat (a netshoot container on Docker, a
Debian VM on local VMs). Any other name takes a container image (container targets).
Fields§
§image: Option<String>A container image (needed unless the name is a built-in recipe).
command: Vec<String>The command to run, when the image’s own isn’t right.
port: Option<u16>A port the tool serves (its web UI), reachable from every network.
publish: Option<u16>The port on the host’s loopback (127.0.0.1) that forwards to the tool’s port, so a
browser on the host can open its web UI.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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 JsonSchema for Tool
impl JsonSchema for Tool
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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