pub struct PathValidationOptions {
pub allow_symlinks: bool,
pub allow_absolute: bool,
pub allow_parent_traversal: bool,
pub repo_root: Option<PathBuf>,
}Expand description
Options for path validation.
Fields§
§allow_symlinks: boolWhether symlinks are allowed.
allow_absolute: boolWhether absolute paths are allowed.
allow_parent_traversal: boolWhether parent directory traversal (..) is allowed.
repo_root: Option<PathBuf>Repository root for boundary checking.
Trait Implementations§
Source§impl Clone for PathValidationOptions
impl Clone for PathValidationOptions
Source§fn clone(&self) -> PathValidationOptions
fn clone(&self) -> PathValidationOptions
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 PathValidationOptions
impl Debug for PathValidationOptions
Auto Trait Implementations§
impl Freeze for PathValidationOptions
impl RefUnwindSafe for PathValidationOptions
impl Send for PathValidationOptions
impl Sync for PathValidationOptions
impl Unpin for PathValidationOptions
impl UnsafeUnpin for PathValidationOptions
impl UnwindSafe for PathValidationOptions
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