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
Auto Trait Implementations§
impl Freeze for ModifyConfig
impl RefUnwindSafe for ModifyConfig
impl Send for ModifyConfig
impl Sync for ModifyConfig
impl Unpin for ModifyConfig
impl UnwindSafe for ModifyConfig
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