pub struct MetadataBuilder { /* private fields */ }Expand description
Helper struct for building plugin metadata
Trait Implementations§
Source§impl Debug for MetadataBuilder
impl Debug for MetadataBuilder
Source§impl Default for MetadataBuilder
impl Default for MetadataBuilder
Source§fn default() -> MetadataBuilder
fn default() -> MetadataBuilder
Returns the “default value” for a type. Read more
Source§impl PluginMetadataBuilder for MetadataBuilder
impl PluginMetadataBuilder for MetadataBuilder
Source§fn description(self, description: impl Into<String>) -> Self
fn description(self, description: impl Into<String>) -> Self
Set the plugin description
Set the plugin author
Source§fn 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
Source§fn 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
Source§fn build(self) -> PluginMetadata
fn build(self) -> PluginMetadata
Build the metadata
Auto Trait Implementations§
impl Freeze for MetadataBuilder
impl RefUnwindSafe for MetadataBuilder
impl Send for MetadataBuilder
impl Sync for MetadataBuilder
impl Unpin for MetadataBuilder
impl UnwindSafe for MetadataBuilder
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