1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-09-21 10:29:01 +00:00
starship/src/configs/container.rs

24 lines
544 B
Rust
Raw Normal View History

use crate::config::ModuleConfig;
use serde::Serialize;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ContainerConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
}
impl<'a> Default for ContainerConfig<'a> {
fn default() -> Self {
ContainerConfig {
format: "[$symbol \\[$name\\]]($style) ",
symbol: "",
style: "red bold dimmed",
disabled: false,
}
}
}