mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-06-01 08:00:51 +00:00
25 lines
564 B
Rust
25 lines
564 B
Rust
use crate::config::{ModuleConfig, RootModuleConfig};
|
|
|
|
use starship_module_config_derive::ModuleConfig;
|
|
|
|
#[derive(Clone, ModuleConfig)]
|
|
pub struct JobsConfig<'a> {
|
|
pub threshold: i64,
|
|
pub format: &'a str,
|
|
pub symbol: &'a str,
|
|
pub style: &'a str,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl<'a> RootModuleConfig<'a> for JobsConfig<'a> {
|
|
fn new() -> Self {
|
|
JobsConfig {
|
|
threshold: 1,
|
|
format: "[$symbol$number]($style) ",
|
|
symbol: "✦",
|
|
style: "bold blue",
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|