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§
Sourcefn description(self, description: impl Into<String>) -> Self
fn description(self, description: impl Into<String>) -> Self
Set the plugin description
Set the plugin author
Sourcefn min_vanguard_version(self, version: impl Into<String>) -> Self
fn min_vanguard_version(self, version: impl Into<String>) -> Self
Set the minimum Vanguard version required
Sourcefn max_vanguard_version(self, version: impl Into<String>) -> Self
fn max_vanguard_version(self, version: impl Into<String>) -> Self
Set the maximum Vanguard version supported
Sourcefn build(self) -> PluginMetadata
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.