pub struct HandlerConfig {
pub force_home: Vec<String>,
pub protected_paths: Vec<String>,
pub targets: HashMap<String, String>,
pub auto_chmod_exec: bool,
}Expand description
Configuration subset relevant to handlers.
Populated from DodotConfig::to_handler_config(). Carries exactly
what handlers need without coupling them to the full config.
Fields§
§force_home: Vec<String>Paths that must be forced to $HOME (e.g. ["ssh", "bashrc"]).
protected_paths: Vec<String>Paths that must not be symlinked (e.g. [".ssh/id_rsa"]).
targets: HashMap<String, String>Per-file custom symlink target overrides. Key = relative path in pack, Value = target path.
auto_chmod_exec: boolWhether to auto-chmod +x files in path-handler directories.
See PathSection::auto_chmod_exec.
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
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 HandlerConfig
impl Debug for HandlerConfig
Source§impl Default for HandlerConfig
impl Default for HandlerConfig
Auto Trait Implementations§
impl Freeze for HandlerConfig
impl RefUnwindSafe for HandlerConfig
impl Send for HandlerConfig
impl Sync for HandlerConfig
impl Unpin for HandlerConfig
impl UnsafeUnpin for HandlerConfig
impl UnwindSafe for HandlerConfig
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