Struct dioxus_cli::cli::cfg::ConfigOptsServe
source · pub struct ConfigOptsServe {
pub target: Option<PathBuf>,
pub port: u16,
pub example: Option<String>,
pub release: bool,
pub verbose: bool,
pub profile: Option<String>,
pub platform: Option<String>,
pub hot_reload: bool,
pub features: Option<Vec<String>>,
}
Fields§
§target: Option<PathBuf>
The index HTML file to drive the bundling process [default: index.html]
port: u16
Port of dev server
example: Option<String>
Build a example [default: “”]
release: bool
Build in release mode [default: false]
verbose: bool
§profile: Option<String>
Build with custom profile
platform: Option<String>
Build platform: support Web & Desktop [default: “default_platform”]
hot_reload: bool
Build with hot reloading rsx [default: false]
features: Option<Vec<String>>
Space separated list of features to activate
Trait Implementations§
source§impl Args for ConfigOptsServe
impl Args for ConfigOptsServe
source§impl Clone for ConfigOptsServe
impl Clone for ConfigOptsServe
source§fn clone(&self) -> ConfigOptsServe
fn clone(&self) -> ConfigOptsServe
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandFactory for ConfigOptsServe
impl CommandFactory for ConfigOptsServe
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
source§impl Debug for ConfigOptsServe
impl Debug for ConfigOptsServe
source§impl Default for ConfigOptsServe
impl Default for ConfigOptsServe
source§fn default() -> ConfigOptsServe
fn default() -> ConfigOptsServe
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfigOptsServe
impl<'de> Deserialize<'de> for ConfigOptsServe
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromArgMatches for ConfigOptsServe
impl FromArgMatches for ConfigOptsServe
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 ConfigOptsServe
impl Parser for ConfigOptsServe
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.