pub struct MakeLivewire {
pub name: String,
pub class: bool,
pub sfc: bool,
pub mfc: bool,
pub inline: bool,
pub js: bool,
pub css: bool,
pub test: bool,
pub force: bool,
pub path: Option<PathBuf>,
}Expand description
Creates a component module, and the view it renders.
Fields§
§name: StringThe component’s name, such as counter, pages.counter, or pages::counter.
class: boolWrite a module whose view it declares itself, as --class does.
sfc: boolWrite one module that carries its markup, the default.
mfc: boolWrite a module beside a .livewire view.
inline: boolWrite a module whose view is inline, as --sfc does.
js: boolAlso write an empty .js module for the component.
css: boolAlso write an empty .css module for the component.
test: boolAlso write a test file for the component.
force: boolReplace files that already exist.
path: Option<PathBuf>Write into this directory instead of the application’s own.
Trait Implementations§
Source§impl Args for MakeLivewire
impl Args for MakeLivewire
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 Command for MakeLivewire
impl Command for MakeLivewire
Source§impl CommandFactory for MakeLivewire
impl CommandFactory for MakeLivewire
Source§impl Debug for MakeLivewire
impl Debug for MakeLivewire
Source§impl FromArgMatches for MakeLivewire
impl FromArgMatches for MakeLivewire
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.Source§impl Parser for MakeLivewire
impl Parser for MakeLivewire
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Forget for MakeLivewire
impl Freeze for MakeLivewire
impl Move for MakeLivewire
impl RefUnwindSafe for MakeLivewire
impl Send for MakeLivewirewhere
RawVecInner: Send,
impl Sync for MakeLivewirewhere
RawVecInner: Sync,
impl Unpin for MakeLivewire
impl UnsafeUnpin for MakeLivewire
impl UnwindSafe for MakeLivewirewhere
RawVecInner: UnwindSafe,
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