Struct proto_pdk::ToolMetadataOutput
source · pub struct ToolMetadataOutput {
pub default_version: Option<String>,
pub env_vars: Vec<String>,
pub inventory: ToolInventoryMetadata,
pub name: String,
pub plugin_version: Option<String>,
pub type_of: PluginType,
}Expand description
Output returned by the register_tool function.
Fields§
§default_version: Option<String>Default alias or version to use as a fallback.
env_vars: Vec<String>Environment variables that should be extracted and passed to other function call inputs.
inventory: ToolInventoryMetadataControls aspects of the tool inventory.
name: StringHuman readable name of the tool.
plugin_version: Option<String>Version of the plugin.
type_of: PluginTypeType 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<ToolMetadataOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ToolMetadataOutput, <__D as Deserializer<'de>>::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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ToolMetadataOutput
impl StructuralEq for ToolMetadataOutput
impl StructuralPartialEq for ToolMetadataOutput
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more