pub struct PathAllowlistConfig {
pub enabled: bool,
pub file_access_allow: Vec<String>,
pub file_write_allow: Vec<String>,
pub patch_allow: Vec<String>,
}Expand description
Configuration for PathAllowlistGuard.
Fields§
§enabled: boolEnable/disable this guard.
file_access_allow: Vec<String>Allowed globs for file access operations.
file_write_allow: Vec<String>Allowed globs for file write operations.
patch_allow: Vec<String>Allowed globs for patch operations (falls back to file_write_allow when empty).
Auto Trait Implementations§
impl Freeze for PathAllowlistConfig
impl RefUnwindSafe for PathAllowlistConfig
impl Send for PathAllowlistConfig
impl Sync for PathAllowlistConfig
impl Unpin for PathAllowlistConfig
impl UnsafeUnpin for PathAllowlistConfig
impl UnwindSafe for PathAllowlistConfig
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