pub struct PathValidationConfig {
    pub max_path_length: usize,
    pub max_path_depth: usize,
    pub allowed_base_dirs: Vec<PathBuf>,
    pub allow_relative_outside_base: bool,
    pub validate_symlinks: bool,
    pub check_existence: bool,
    pub allowed_extensions: HashSet<String>,
    pub allow_hidden: bool,
}Expand description
Path validation configuration
Fields§
§max_path_length: usizeMaximum allowed path length
max_path_depth: usizeMaximum path depth (number of components)
allowed_base_dirs: Vec<PathBuf>Allowed base directories (whitelist)
allow_relative_outside_base: boolWhether to allow relative paths outside allowed directories
validate_symlinks: boolWhether to resolve and validate symlinks
check_existence: boolWhether to check for file existence
allowed_extensions: HashSet<String>Additional allowed file extensions
Whether to allow hidden files/directories
Trait Implementations§
Source§impl Clone for PathValidationConfig
 
impl Clone for PathValidationConfig
Source§fn clone(&self) -> PathValidationConfig
 
fn clone(&self) -> PathValidationConfig
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 PathValidationConfig
 
impl Debug for PathValidationConfig
Auto Trait Implementations§
impl Freeze for PathValidationConfig
impl RefUnwindSafe for PathValidationConfig
impl Send for PathValidationConfig
impl Sync for PathValidationConfig
impl Unpin for PathValidationConfig
impl UnwindSafe for PathValidationConfig
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