#[non_exhaustive]pub struct PluginMetadata {
pub id: String,
pub name: String,
pub version: String,
pub api_version: u32,
pub description: Option<String>,
}Expand description
Who a plugin is. Build it with PluginMetadata::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringA stable, unique identifier: lowercase letters, digits, -, _ and ..
name: StringA human-readable name.
version: StringThe plugin’s own version, usually env!("CARGO_PKG_VERSION").
api_version: u32The PLUGIN_API_VERSION the plugin was built against.
description: Option<String>One line on what the plugin adds.
Implementations§
Trait Implementations§
Source§impl Clone for PluginMetadata
impl Clone for PluginMetadata
Source§impl Debug for PluginMetadata
impl Debug for PluginMetadata
impl Eq for PluginMetadata
Source§impl PartialEq for PluginMetadata
impl PartialEq for PluginMetadata
impl StructuralPartialEq for PluginMetadata
Auto Trait Implementations§
impl Freeze for PluginMetadata
impl RefUnwindSafe for PluginMetadata
impl Send for PluginMetadata
impl Sync for PluginMetadata
impl Unpin for PluginMetadata
impl UnsafeUnpin for PluginMetadata
impl UnwindSafe for PluginMetadata
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.