pub struct SymlinkSection {
pub force_home: Vec<String>,
pub protected_paths: Vec<String>,
pub targets: HashMap<String, String>,
}Expand description
Symlink handler settings.
Fields§
§force_home: Vec<String>Files/directories that must deploy to $HOME instead of
$XDG_CONFIG_HOME. Matched against the first path segment
(without leading dot).
protected_paths: Vec<String>Paths that must not be symlinked for security reasons.
targets: HashMap<String, String>Custom per-file symlink target overrides.
Maps relative pack filename to absolute or relative target path.
Absolute paths are used as-is; relative paths are resolved from
$XDG_CONFIG_HOME.
Trait Implementations§
Source§impl Clone for SymlinkSection
impl Clone for SymlinkSection
Source§fn clone(&self) -> SymlinkSection
fn clone(&self) -> SymlinkSection
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 Config for SymlinkSection
impl Config for SymlinkSection
Source§type Layer = SymlinkSectionLayer
type Layer = SymlinkSectionLayer
A layer of
Self (a potentially partial configuration). Read moreSource§fn from_layer(layer: Self::Layer) -> Result<Self, Error>
fn from_layer(layer: Self::Layer) -> Result<Self, Error>
Tries to create
Self from a layer and validates itself. Read moreSource§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
Convenience builder to configure, load and merge multiple configuration
sources. Sources specified earlier have a higher priority; later
sources only fill in the gaps. After all sources have been loaded, the
default values (usually specified with
#[default = ...]) are merged
(with the lowest priority). Read moreSource§impl Debug for SymlinkSection
impl Debug for SymlinkSection
Source§impl<'de> Deserialize<'de> for SymlinkSection
impl<'de> Deserialize<'de> for SymlinkSection
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 SymlinkSection
impl RefUnwindSafe for SymlinkSection
impl Send for SymlinkSection
impl Sync for SymlinkSection
impl Unpin for SymlinkSection
impl UnsafeUnpin for SymlinkSection
impl UnwindSafe for SymlinkSection
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