pub struct CliTool {
pub name: String,
pub version: String,
pub version_command: Option<String>,
}Expand description
CLI tool a cli-tool action node depends on. name is the binary the Node
Hub probes on the user’s machine; version is the minimum required
version (installed >= required => OK, lower => “update needed”, absent =>
“not installed”). Distinct from NodeCatalogEntry::version, which is the
node scheme version. version_command overrides the probe argument and
defaults to --version at the call site.
Fields§
§name: String§version: String§version_command: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliTool
impl<'de> Deserialize<'de> for CliTool
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 CliTool
impl RefUnwindSafe for CliTool
impl Send for CliTool
impl Sync for CliTool
impl Unpin for CliTool
impl UnsafeUnpin for CliTool
impl UnwindSafe for CliTool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more