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§
source§impl GlobalConfig
impl GlobalConfig
sourcepub fn new() -> GlobalConfig
pub fn new() -> GlobalConfig
Returns new instance
Trait Implementations§
source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
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 Debug for GlobalConfig
impl Debug for GlobalConfig
source§impl Default for GlobalConfig
impl Default for GlobalConfig
source§fn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
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 GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more