PluginMetadataBuilder

Trait PluginMetadataBuilder 

Source
pub trait PluginMetadataBuilder {
    // Required methods
    fn name(self, name: impl Into<String>) -> Self;
    fn version(self, version: impl Into<String>) -> Self;
    fn description(self, description: impl Into<String>) -> Self;
    fn author(self, author: impl Into<String>) -> Self;
    fn min_vanguard_version(self, version: impl Into<String>) -> Self;
    fn max_vanguard_version(self, version: impl Into<String>) -> Self;
    fn build(self) -> PluginMetadata;
}
Expand description

Helper trait for building plugin metadata

Required Methods§

Source

fn name(self, name: impl Into<String>) -> Self

Set the plugin name

Source

fn version(self, version: impl Into<String>) -> Self

Set the plugin version

Source

fn description(self, description: impl Into<String>) -> Self

Set the plugin description

Source

fn author(self, author: impl Into<String>) -> Self

Set the plugin author

Source

fn min_vanguard_version(self, version: impl Into<String>) -> Self

Set the minimum Vanguard version required

Source

fn max_vanguard_version(self, version: impl Into<String>) -> Self

Set the maximum Vanguard version supported

Source

fn build(self) -> PluginMetadata

Build the metadata

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§