pub struct PathPolicy {
pub dotfiles: DotfilePolicy,
pub reject_backslash: bool,
}Expand description
Configuration for path validation during ConfinedPath parsing.
Default: dotfiles denied, backslash rejected.
Fields§
§dotfiles: DotfilePolicy§reject_backslash: boolImplementations§
Source§impl PathPolicy
impl PathPolicy
pub fn check_dotfile(&self, component: &str) -> Result<(), PathRejection>
pub fn check_backslash(&self, component: &str) -> Result<(), PathRejection>
Trait Implementations§
Source§impl Clone for PathPolicy
impl Clone for PathPolicy
Source§fn clone(&self) -> PathPolicy
fn clone(&self) -> PathPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathPolicy
impl Debug for PathPolicy
Source§impl Default for PathPolicy
impl Default for PathPolicy
impl Eq for PathPolicy
Source§impl PartialEq for PathPolicy
impl PartialEq for PathPolicy
impl StructuralPartialEq for PathPolicy
Auto Trait Implementations§
impl Freeze for PathPolicy
impl RefUnwindSafe for PathPolicy
impl Send for PathPolicy
impl Sync for PathPolicy
impl Unpin for PathPolicy
impl UnsafeUnpin for PathPolicy
impl UnwindSafe for PathPolicy
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