pub struct FileAccessConfig {
pub enabled: bool,
pub allowed_dirs: Option<Vec<PathBuf>>,
pub read_only: bool,
pub max_size: u64,
}Expand description
Configuration for file access
Fields§
§enabled: boolWhether file access is enabled
allowed_dirs: Option<Vec<PathBuf>>Allowed directories for file access
read_only: boolWhether file access is read-only
max_size: u64Maximum file size for file access
Trait Implementations§
Source§impl Clone for FileAccessConfig
impl Clone for FileAccessConfig
Source§fn clone(&self) -> FileAccessConfig
fn clone(&self) -> FileAccessConfig
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 FileAccessConfig
impl Debug for FileAccessConfig
Auto Trait Implementations§
impl Freeze for FileAccessConfig
impl RefUnwindSafe for FileAccessConfig
impl Send for FileAccessConfig
impl Sync for FileAccessConfig
impl Unpin for FileAccessConfig
impl UnwindSafe for FileAccessConfig
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