Struct cli::types::ModifyConfig
source · pub struct ModifyConfig {
pub private: Option<bool>,
pub namespace: Option<String>,
}
Expand description
Holds properties to modify the core tasks
Fields§
§private: Option<bool>
If true, all core tasks will be set to private (default false)
namespace: Option<String>
If set to some value, all core tasks are modified to: namespace::name for example default::build
Implementations§
source§impl ModifyConfig
impl ModifyConfig
sourcepub fn is_modifications_defined(self: &ModifyConfig) -> bool
pub fn is_modifications_defined(self: &ModifyConfig) -> bool
Returns true if config modifications is needed based on the current state
sourcepub fn get_namespace_prefix(self: &ModifyConfig) -> String
pub fn get_namespace_prefix(self: &ModifyConfig) -> String
Returns the namespace prefix for task names
Trait Implementations§
source§impl Clone for ModifyConfig
impl Clone for ModifyConfig
source§fn clone(&self) -> ModifyConfig
fn clone(&self) -> ModifyConfig
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 ModifyConfig
impl Debug for ModifyConfig
source§impl<'de> Deserialize<'de> for ModifyConfig
impl<'de> Deserialize<'de> for ModifyConfig
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