pub struct FileAccessConfig {
pub read: bool,
pub write: bool,
pub allowed_paths: Vec<PathBuf>,
}Expand description
File access configuration for an ACP agent.
Fields§
§read: boolWhether read access is allowed.
write: boolWhether write access is allowed.
allowed_paths: Vec<PathBuf>Restrict access to these paths only. Empty means no restriction.
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
Source§impl Default for FileAccessConfig
impl Default for FileAccessConfig
Source§fn default() -> FileAccessConfig
fn default() -> FileAccessConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileAccessConfig
impl<'de> Deserialize<'de> for FileAccessConfig
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
Source§impl PartialEq for FileAccessConfig
impl PartialEq for FileAccessConfig
Source§impl Serialize for FileAccessConfig
impl Serialize for FileAccessConfig
impl StructuralPartialEq 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 UnsafeUnpin 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