pub struct FilesystemConfig {
pub deny_read: Vec<String>,
pub allow_write: Vec<String>,
pub deny_write: Vec<String>,
pub allow_git_config: Option<bool>,
}Expand description
Filesystem restriction configuration.
Fields§
§deny_read: Vec<String>Paths/patterns denied for reading.
allow_write: Vec<String>Paths allowed for writing.
deny_write: Vec<String>Paths denied for writing (overrides allow_write).
allow_git_config: Option<bool>Allow writes to .git/config.
Trait Implementations§
Source§impl Clone for FilesystemConfig
impl Clone for FilesystemConfig
Source§fn clone(&self) -> FilesystemConfig
fn clone(&self) -> FilesystemConfig
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 FilesystemConfig
impl Debug for FilesystemConfig
Source§impl Default for FilesystemConfig
impl Default for FilesystemConfig
Source§fn default() -> FilesystemConfig
fn default() -> FilesystemConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilesystemConfig
impl<'de> Deserialize<'de> for FilesystemConfig
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 FilesystemConfig
impl RefUnwindSafe for FilesystemConfig
impl Send for FilesystemConfig
impl Sync for FilesystemConfig
impl Unpin for FilesystemConfig
impl UnwindSafe for FilesystemConfig
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