Struct proto_pdk_api::ToolMetadataOutput
source · pub struct ToolMetadataOutput {
pub default_version: Option<UnresolvedVersionSpec>,
pub inventory: ToolInventoryMetadata,
pub name: String,
pub plugin_version: Option<String>,
pub self_upgrade_commands: Vec<String>,
pub type_of: PluginType,
}
Expand description
Output returned by the register_tool
function.
Fields§
§default_version: Option<UnresolvedVersionSpec>
Default alias or version to use as a fallback.
inventory: ToolInventoryMetadata
Controls aspects of the tool inventory.
name: String
Human readable name of the tool.
plugin_version: Option<String>
Version of the plugin.
self_upgrade_commands: Vec<String>
Names of commands that will self-upgrade the tool, and should be blocked from happening.
type_of: PluginType
Type of the tool.
Trait Implementations§
source§impl Clone for ToolMetadataOutput
impl Clone for ToolMetadataOutput
source§fn clone(&self) -> ToolMetadataOutput
fn clone(&self) -> ToolMetadataOutput
Returns a copy of the value. Read more
1.0.0 · 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 ToolMetadataOutput
impl Debug for ToolMetadataOutput
source§impl Default for ToolMetadataOutput
impl Default for ToolMetadataOutput
source§fn default() -> ToolMetadataOutput
fn default() -> ToolMetadataOutput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ToolMetadataOutputwhere
ToolMetadataOutput: Default,
impl<'de> Deserialize<'de> for ToolMetadataOutputwhere
ToolMetadataOutput: 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
source§impl PartialEq for ToolMetadataOutput
impl PartialEq for ToolMetadataOutput
source§fn eq(&self, other: &ToolMetadataOutput) -> bool
fn eq(&self, other: &ToolMetadataOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ToolMetadataOutput
impl Serialize for ToolMetadataOutput
impl StructuralPartialEq for ToolMetadataOutput
Auto Trait Implementations§
impl Freeze for ToolMetadataOutput
impl RefUnwindSafe for ToolMetadataOutput
impl Send for ToolMetadataOutput
impl Sync for ToolMetadataOutput
impl Unpin for ToolMetadataOutput
impl UnwindSafe for ToolMetadataOutput
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