pub enum MakeCommand {
Model {
name: String,
},
Controller {
name: String,
api: bool,
plain: bool,
},
Migration {
name: String,
path: String,
},
Guard {
name: String,
},
Scaffold {
name: String,
},
}Expand description
make 子命令枚举
对齐 PHP think make:* 命令组。
Variants§
Model
生成 Model(对齐 php think make:model User)
Controller
生成 Controller(对齐 php think make:controller User)
Migration
生成迁移文件(对齐 Phinx make:migration)
Guard
生成 Guard(sz-rust 自研,无 PHP 对应)
Scaffold
生成脚手架(Model + Controller + Migration)
Trait Implementations§
Source§impl Debug for MakeCommand
impl Debug for MakeCommand
Source§impl FromArgMatches for MakeCommand
impl FromArgMatches for MakeCommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for MakeCommand
impl Subcommand for MakeCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MakeCommand
impl RefUnwindSafe for MakeCommand
impl Send for MakeCommand
impl Sync for MakeCommand
impl Unpin for MakeCommand
impl UnsafeUnpin for MakeCommand
impl UnwindSafe for MakeCommand
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