pub struct LivewireMake {
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, called by the livewire:make alias.
It takes the same options as MakeLivewire, which it forwards to.
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 LivewireMake
impl Args for LivewireMake
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 LivewireMake
impl Command for LivewireMake
Source§impl CommandFactory for LivewireMake
impl CommandFactory for LivewireMake
Source§impl Debug for LivewireMake
impl Debug for LivewireMake
Source§impl FromArgMatches for LivewireMake
impl FromArgMatches for LivewireMake
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 LivewireMake
impl Parser for LivewireMake
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 LivewireMake
impl Freeze for LivewireMake
impl Move for LivewireMake
impl RefUnwindSafe for LivewireMake
impl Send for LivewireMakewhere
RawVecInner: Send,
impl Sync for LivewireMakewhere
RawVecInner: Sync,
impl Unpin for LivewireMake
impl UnsafeUnpin for LivewireMake
impl UnwindSafe for LivewireMakewhere
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