pub struct RunfConfig {
pub level: Level,
pub disabled: HashSet<String>,
pub allowed: Option<HashSet<String>>,
pub data_dir: PathBuf,
pub plugin_dir: PathBuf,
pub home_dir: PathBuf,
pub pipelines: HashMap<String, ConditionalPipelines>,
}Expand description
Resolved lowfat configuration from env + .lowfat file.
Fields§
§level: Level§disabled: HashSet<String>§allowed: Option<HashSet<String>>Some = whitelist mode (only these filters active)
data_dir: PathBuf§plugin_dir: PathBuf§home_dir: PathBuf§pipelines: HashMap<String, ConditionalPipelines>Per-command conditional pipelines from .lowfat config. Supports: pipeline.git = …, pipeline.git.error = …, pipeline.git.large = …
Implementations§
Source§impl RunfConfig
impl RunfConfig
Sourcepub fn pipeline_for(&self, cmd: &str) -> Option<&ConditionalPipelines>
pub fn pipeline_for(&self, cmd: &str) -> Option<&ConditionalPipelines>
Get the conditional pipelines for a command, if configured.
Sourcepub fn is_enabled(&self, name: &str) -> bool
pub fn is_enabled(&self, name: &str) -> bool
Check if a filter name is enabled under current config.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunfConfig
impl RefUnwindSafe for RunfConfig
impl Send for RunfConfig
impl Sync for RunfConfig
impl Unpin for RunfConfig
impl UnsafeUnpin for RunfConfig
impl UnwindSafe for RunfConfig
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