pub struct TestOpts {
pub no_build: bool,
pub show_browser: bool,
pub watch: bool,
pub custom_watch: Vec<String>,
pub host: String,
pub port: u16,
}
Expand description
Serves your app as perseus serve
does, but puts it in testing mode
Fields§
§no_build: bool
Only build the testing server, and use the results of a previous
perseus build
show_browser: bool
Show the browser window when testing (by default, the browser is used in ‘headless’ mode); this can be useful for debugging failing tests in some cases
watch: bool
Watch the files in your working directory for changes (excluding
target/
and dist/
)
custom_watch: Vec<String>
Marks a specific file/directory to be watched (directories will be recursively watched)
host: String
Where to host your exported app
port: u16
The port to host your exported app on
Trait Implementations§
Source§impl Args for TestOpts
impl Args for TestOpts
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 CommandFactory for TestOpts
impl CommandFactory for TestOpts
Source§impl FromArgMatches for TestOpts
impl FromArgMatches for TestOpts
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 TestOpts
impl Parser for TestOpts
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 Freeze for TestOpts
impl RefUnwindSafe for TestOpts
impl Send for TestOpts
impl Sync for TestOpts
impl Unpin for TestOpts
impl UnwindSafe for TestOpts
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