pub struct FilesystemPolicy {
pub readable_paths: Vec<PathBuf>,
pub writable_paths: Vec<PathBuf>,
pub allow_create: bool,
pub allow_delete: bool,
pub max_file_size: u64,
}Expand description
Filesystem access policy for a sandboxed agent.
Fields§
§readable_paths: Vec<PathBuf>Paths the agent can read from.
writable_paths: Vec<PathBuf>Paths the agent can write to.
allow_create: boolWhether the agent can create new files.
allow_delete: boolWhether the agent can delete files.
max_file_size: u64Maximum individual file size in bytes (default: 8MB).
Trait Implementations§
Source§impl Clone for FilesystemPolicy
impl Clone for FilesystemPolicy
Source§fn clone(&self) -> FilesystemPolicy
fn clone(&self) -> FilesystemPolicy
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 FilesystemPolicy
impl Debug for FilesystemPolicy
Source§impl Default for FilesystemPolicy
impl Default for FilesystemPolicy
Source§fn default() -> FilesystemPolicy
fn default() -> FilesystemPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilesystemPolicy
impl<'de> Deserialize<'de> for FilesystemPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FilesystemPolicy
impl RefUnwindSafe for FilesystemPolicy
impl Send for FilesystemPolicy
impl Sync for FilesystemPolicy
impl Unpin for FilesystemPolicy
impl UnsafeUnpin for FilesystemPolicy
impl UnwindSafe for FilesystemPolicy
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