pub struct CommandSignature {
pub name: String,
pub description: String,
pub usage: String,
}Expand description
控制台命令签名(名称、描述、用法)
对齐 PHP think\console\command\Command::configure() 中设置的 name / description / help。
Fields§
§name: String命令名称(如 "make:model"、"hello")
description: String简短描述
usage: String用法示例
Trait Implementations§
Source§impl Clone for CommandSignature
impl Clone for CommandSignature
Source§fn clone(&self) -> CommandSignature
fn clone(&self) -> CommandSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandSignature
impl RefUnwindSafe for CommandSignature
impl Send for CommandSignature
impl Sync for CommandSignature
impl Unpin for CommandSignature
impl UnsafeUnpin for CommandSignature
impl UnwindSafe for CommandSignature
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