pub struct DependenciesConfig {
pub definitions: HashMap<String, DependencyDefinition>,
}Expand description
Dependency type configuration.
Fields§
§definitions: HashMap<String, DependencyDefinition>Dependency type definitions.
Implementations§
Source§impl DependenciesConfig
impl DependenciesConfig
Sourcepub fn is_valid_dep_type(&self, dep_type: &str) -> bool
pub fn is_valid_dep_type(&self, dep_type: &str) -> bool
Check if a dependency type is valid.
Sourcepub fn get_definition(&self, dep_type: &str) -> Option<&DependencyDefinition>
pub fn get_definition(&self, dep_type: &str) -> Option<&DependencyDefinition>
Get the definition for a dependency type.
Sourcepub fn start_blocking_types(&self) -> Vec<&str>
pub fn start_blocking_types(&self) -> Vec<&str>
Get all dependency types that block start.
Sourcepub fn completion_blocking_types(&self) -> Vec<&str>
pub fn completion_blocking_types(&self) -> Vec<&str>
Get all dependency types that block completion.
Sourcepub fn vertical_types(&self) -> Vec<&str>
pub fn vertical_types(&self) -> Vec<&str>
Get all vertical (parent-child) dependency types.
Sourcepub fn dep_type_names(&self) -> Vec<&str>
pub fn dep_type_names(&self) -> Vec<&str>
Get all dependency type names.
Trait Implementations§
Source§impl Clone for DependenciesConfig
impl Clone for DependenciesConfig
Source§fn clone(&self) -> DependenciesConfig
fn clone(&self) -> DependenciesConfig
Returns a duplicate 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 DependenciesConfig
impl Debug for DependenciesConfig
Source§impl Default for DependenciesConfig
impl Default for DependenciesConfig
Source§impl<'de> Deserialize<'de> for DependenciesConfig
impl<'de> Deserialize<'de> for DependenciesConfig
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 DependenciesConfig
impl RefUnwindSafe for DependenciesConfig
impl Send for DependenciesConfig
impl Sync for DependenciesConfig
impl Unpin for DependenciesConfig
impl UnsafeUnpin for DependenciesConfig
impl UnwindSafe for DependenciesConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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