Struct cli::types::GlobalConfig
source · [−]pub struct GlobalConfig {
pub file_name: Option<String>,
pub log_level: Option<String>,
pub disable_color: Option<bool>,
pub default_task_name: Option<String>,
pub update_check_minimum_interval: Option<String>,
pub search_project_root: Option<bool>,
}
Expand description
Holds configuration info for cargo-make
Fields
file_name: Option<String>
File from which the global config was loaded from
log_level: Option<String>
Default log level
disable_color: Option<bool>
Default output coloring
default_task_name: Option<String>
Default task name
update_check_minimum_interval: Option<String>
Update check minimum time from the previous check (always, daily, weekly, monthly)
search_project_root: Option<bool>
True to search for project root in parent directories if current cwd is not a project root
Implementations
sourceimpl GlobalConfig
impl GlobalConfig
sourcepub fn new() -> GlobalConfig
pub fn new() -> GlobalConfig
Returns new instance
Trait Implementations
sourceimpl Clone for GlobalConfig
impl Clone for GlobalConfig
sourcefn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GlobalConfig
impl Debug for GlobalConfig
sourceimpl Default for GlobalConfig
impl Default for GlobalConfig
sourcefn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
sourcefn 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
sourceimpl Serialize for GlobalConfig
impl Serialize for GlobalConfig
Auto Trait Implementations
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more