PathCategory

Trait PathCategory 

Source
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§

Source

fn category_name() -> &'static str

Gets the category name for this path type

Provided Methods§

Source

fn validate_category(_path: &Path) -> Result<(), PipelineError>

Validates category-specific constraints

Source

fn should_exist() -> bool

Checks if the path should exist for this category

Source

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.

Implementors§