pub struct Pack {
pub secret_globs: Vec<String>,
pub cache_dirs: Vec<String>,
pub keep: Vec<String>,
}Expand description
Classification overrides for lds pack.
Every list here is added to the built-in defaults rather than replacing
them, so a project that declares one project-specific secret name does not
silently lose the protection of the built-in list. keep is the one escape
hatch that subtracts: it names files the built-ins would classify as secret
or cache but that this operator wants carried anyway.
Patterns are globs matched against the file name (not the full path),
e.g. *.vault, secret*.toml, my-app-keys.json.
Fields§
§secret_globs: Vec<String>Extra file-name globs to treat as secrets (never packed, only reported).
cache_dirs: Vec<String>Extra directory names to treat as regenerable caches (never packed).
keep: Vec<String>File-name globs that must be packed even if a built-in rule excludes them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pack
impl<'de> Deserialize<'de> for Pack
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 Pack
impl RefUnwindSafe for Pack
impl Send for Pack
impl Sync for Pack
impl Unpin for Pack
impl UnsafeUnpin for Pack
impl UnwindSafe for Pack
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