pub struct PluginInfoBuilder { /* private fields */ }Expand description
Builder for creating plugin info.
Implementations§
Source§impl PluginInfoBuilder
impl PluginInfoBuilder
Sourcepub fn new(id: &str, name: &str, author: &str) -> Self
pub fn new(id: &str, name: &str, author: &str) -> Self
Create a new builder with required fields.
Sourcepub fn version_prerelease(
self,
major: u32,
minor: u32,
patch: u32,
prerelease: &str,
) -> Self
pub fn version_prerelease( self, major: u32, minor: u32, patch: u32, prerelease: &str, ) -> Self
Set the version with pre-release tag.
Sourcepub fn description(self, desc: &str) -> Self
pub fn description(self, desc: &str) -> Self
Set the description.
Sourcepub fn build(self) -> PluginInfo
pub fn build(self) -> PluginInfo
Build the plugin info.
Auto Trait Implementations§
impl Freeze for PluginInfoBuilder
impl RefUnwindSafe for PluginInfoBuilder
impl Send for PluginInfoBuilder
impl Sync for PluginInfoBuilder
impl Unpin for PluginInfoBuilder
impl UnwindSafe for PluginInfoBuilder
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