pub struct NewPluginArgs {
pub name: String,
pub backend: bool,
pub frontend: bool,
pub full: bool,
pub output: Option<PathBuf>,
pub server_sdk: String,
pub web_sdk: String,
}Fields§
§name: StringPlugin name (kebab-case, e.g. “my-plugin”)
backend: boolCreate backend (Rust/WASM) plugin only
frontend: boolCreate frontend (React/TypeScript) plugin only
full: boolCreate full plugin with both backend and frontend
output: Option<PathBuf>Output directory (defaults to ./
server_sdk: StringServer SDK dependency (e.g. path or version)
web_sdk: StringFrontend SDK dependency version
Trait Implementations§
Source§impl Args for NewPluginArgs
impl Args for NewPluginArgs
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 FromArgMatches for NewPluginArgs
impl FromArgMatches for NewPluginArgs
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 NewPluginArgs
impl RefUnwindSafe for NewPluginArgs
impl Send for NewPluginArgs
impl Sync for NewPluginArgs
impl Unpin for NewPluginArgs
impl UnsafeUnpin for NewPluginArgs
impl UnwindSafe for NewPluginArgs
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