pub struct HostFilePolicySettings {
pub shell_tool_name: String,
pub delivery_hint: Option<String>,
pub own_file_hint: Option<String>,
pub keeps_backups: bool,
pub backup_root: Option<PathBuf>,
}Expand description
What a HostFilePolicy says and keeps, as the application words it.
Fields§
§shell_tool_name: StringThe tool named in hints that suggest running a command.
delivery_hint: Option<String>A sentence added after an append, on delivering the finished file.
own_file_hint: Option<String>Where to go instead when the refused path is one of the application’s own files.
keeps_backups: boolKeep a copy of a file before it is replaced, under backup_root.
backup_root: Option<PathBuf>Where backups go (None: none is kept).
Trait Implementations§
Source§impl Clone for HostFilePolicySettings
impl Clone for HostFilePolicySettings
Source§impl Debug for HostFilePolicySettings
impl Debug for HostFilePolicySettings
Auto Trait Implementations§
impl Forget for HostFilePolicySettings
impl Freeze for HostFilePolicySettings
impl Move for HostFilePolicySettings
impl RefUnwindSafe for HostFilePolicySettings
impl Send for HostFilePolicySettings
impl Sync for HostFilePolicySettings
impl Unpin for HostFilePolicySettings
impl UnsafeUnpin for HostFilePolicySettings
impl UnwindSafe for HostFilePolicySettings
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