pub trait PathCategory {
// Required method
fn category_name() -> &'static str;
// Provided methods
fn validate_category(_path: &Path) -> Result<(), PipelineError> { ... }
fn should_exist() -> bool { ... }
fn should_be_writable() -> bool { ... }
}Expand description
Path category trait for type-specific behavior
Required Methods§
Sourcefn category_name() -> &'static str
fn category_name() -> &'static str
Gets the category name for this path type
Provided Methods§
Sourcefn validate_category(_path: &Path) -> Result<(), PipelineError>
fn validate_category(_path: &Path) -> Result<(), PipelineError>
Validates category-specific constraints
Sourcefn should_exist() -> bool
fn should_exist() -> bool
Checks if the path should exist for this category
Sourcefn should_be_writable() -> bool
fn should_be_writable() -> bool
Checks if the path should be writable for this category
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.