Struct dioxus_cli::config::CrateConfig
source · pub struct CrateConfig {Show 13 fields
pub out_dir: PathBuf,
pub crate_dir: PathBuf,
pub workspace_dir: PathBuf,
pub target_dir: PathBuf,
pub asset_dir: PathBuf,
pub manifest: Manifest<Value>,
pub executable: ExecutableType,
pub dioxus_config: DioxusConfig,
pub release: bool,
pub hot_reload: bool,
pub verbose: bool,
pub custom_profile: Option<String>,
pub features: Option<Vec<String>>,
}
Fields§
§out_dir: PathBuf
§crate_dir: PathBuf
§workspace_dir: PathBuf
§target_dir: PathBuf
§asset_dir: PathBuf
§manifest: Manifest<Value>
§executable: ExecutableType
§dioxus_config: DioxusConfig
§release: bool
§hot_reload: bool
§verbose: bool
§custom_profile: Option<String>
§features: Option<Vec<String>>
Implementations§
source§impl CrateConfig
impl CrateConfig
pub fn new() -> Result<Self>
pub fn as_example(&mut self, example_name: String) -> &mut Self
pub fn with_release(&mut self, release: bool) -> &mut Self
pub fn with_hot_reload(&mut self, hot_reload: bool) -> &mut Self
pub fn with_verbose(&mut self, verbose: bool) -> &mut Self
pub fn set_profile(&mut self, profile: String) -> &mut Self
pub fn set_features(&mut self, features: Vec<String>) -> &mut Self
Trait Implementations§
source§impl Clone for CrateConfig
impl Clone for CrateConfig
source§fn clone(&self) -> CrateConfig
fn clone(&self) -> CrateConfig
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 more