pub struct ProjectConfig {
pub min_version: Option<String>,
pub custom_make: Option<String>,
pub custom_args: Option<Vec<String>>,
pub target_dir: Option<PathBuf>,
pub base_dir: Option<PathBuf>,
pub build_base: Option<bool>,
pub build_target: Option<bool>,
pub watch_patterns: Option<Vec<Glob>>,
pub units: Option<Vec<ProjectObject>>,
pub progress_categories: Option<Vec<ProjectProgressCategory>>,
}
Fields§
§min_version: Option<String>
§custom_make: Option<String>
§custom_args: Option<Vec<String>>
§target_dir: Option<PathBuf>
§base_dir: Option<PathBuf>
§build_base: Option<bool>
§build_target: Option<bool>
§watch_patterns: Option<Vec<Glob>>
§units: Option<Vec<ProjectObject>>
§progress_categories: Option<Vec<ProjectProgressCategory>>
Implementations§
source§impl ProjectConfig
impl ProjectConfig
pub fn units(&self) -> &[ProjectObject]
pub fn units_mut(&mut self) -> &mut Vec<ProjectObject>
pub fn progress_categories(&self) -> &[ProjectProgressCategory]
pub fn progress_categories_mut(&mut self) -> &mut Vec<ProjectProgressCategory>
Trait Implementations§
source§impl Clone for ProjectConfig
impl Clone for ProjectConfig
source§fn clone(&self) -> ProjectConfig
fn clone(&self) -> ProjectConfig
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 Default for ProjectConfig
impl Default for ProjectConfig
source§fn default() -> ProjectConfig
fn default() -> ProjectConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProjectConfig
impl<'de> Deserialize<'de> for ProjectConfig
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
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)