pub struct PluginMetadata {
pub name: Option<String>,
pub version: Option<String>,
pub vendor: Option<String>,
pub license: Option<String>,
pub homepage: Option<String>,
pub description: Option<String>,
pub source_url: Option<String>,
}Expand description
Rust-friendly, owned copy of the metadata. Every field is Option
because the plugin may omit any of them; the caller fills gaps from
CLI args.
Fields§
§name: Option<String>§version: Option<String>§vendor: Option<String>§license: Option<String>§homepage: Option<String>§description: Option<String>§source_url: Option<String>Trait Implementations§
Source§impl Clone for PluginMetadata
impl Clone for PluginMetadata
Source§fn clone(&self) -> PluginMetadata
fn clone(&self) -> PluginMetadata
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 PluginMetadata
impl Debug for PluginMetadata
Source§impl Default for PluginMetadata
impl Default for PluginMetadata
Source§fn default() -> PluginMetadata
fn default() -> PluginMetadata
Returns the “default value” for a type. Read more
impl Eq for PluginMetadata
Source§impl PartialEq for PluginMetadata
impl PartialEq for PluginMetadata
Source§fn eq(&self, other: &PluginMetadata) -> bool
fn eq(&self, other: &PluginMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.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