pub struct PluginDescribe {
pub protocol_version: u32,
pub name: String,
pub config_types: Vec<String>,
pub supports: PluginSupports,
}Expand description
What a plugin sends in response to --describe. Used by klasp to
verify forward-compatibility before invoking --gate.
Fields§
§protocol_version: u32Must equal PLUGIN_PROTOCOL_VERSION for klasp to accept the plugin.
name: StringCanonical plugin name (e.g. "klasp-plugin-pre-commit").
config_types: Vec<String>List of config type names this plugin supports. Informational only.
supports: PluginSupportsCapability flags. Currently only verdict_v0 is defined.
Trait Implementations§
Source§impl Clone for PluginDescribe
impl Clone for PluginDescribe
Source§fn clone(&self) -> PluginDescribe
fn clone(&self) -> PluginDescribe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginDescribe
impl Debug for PluginDescribe
Source§impl<'de> Deserialize<'de> for PluginDescribe
impl<'de> Deserialize<'de> for PluginDescribe
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 PluginDescribe
impl RefUnwindSafe for PluginDescribe
impl Send for PluginDescribe
impl Sync for PluginDescribe
impl Unpin for PluginDescribe
impl UnsafeUnpin for PluginDescribe
impl UnwindSafe for PluginDescribe
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