pub struct PluginInitArgs {
pub id: String,
pub scope: PluginScopeArg,
pub path: Option<PathBuf>,
pub name: Option<String>,
pub version: String,
pub description: Option<String>,
pub with_runner: bool,
pub with_processor: bool,
pub dry_run: bool,
pub force: bool,
}Fields§
§id: StringPlugin ID (used as directory name in default layout).
scope: PluginScopeArgWhere to scaffold the plugin (ignored when –path is provided).
path: Option<PathBuf>Target plugin directory (overrides –scope). Relative paths are resolved from repo root.
name: Option<String>Manifest name (default: derived from id).
version: StringManifest version (SemVer string).
description: Option<String>Optional manifest description.
with_runner: boolInclude runner stub + runner manifest section.
with_processor: boolInclude processor stub + processors manifest section.
dry_run: boolPreview what would be written without creating files.
force: boolOverwrite scaffolded files if the directory already exists.
Trait Implementations§
Source§impl Args for PluginInitArgs
impl Args for PluginInitArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for PluginInitArgs
impl Clone for PluginInitArgs
Source§fn clone(&self) -> PluginInitArgs
fn clone(&self) -> PluginInitArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginInitArgs
impl Debug for PluginInitArgs
Source§impl FromArgMatches for PluginInitArgs
impl FromArgMatches for PluginInitArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PluginInitArgs
impl RefUnwindSafe for PluginInitArgs
impl Send for PluginInitArgs
impl Sync for PluginInitArgs
impl Unpin for PluginInitArgs
impl UnsafeUnpin for PluginInitArgs
impl UnwindSafe for PluginInitArgs
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