Files
starship/src/configs/vcsh.rs
T

23 lines
538 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
2021-03-28 18:48:15 +03:00
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))]
#[serde(default)]
2021-03-28 18:48:15 +03:00
pub struct VcshConfig<'a> {
pub symbol: &'a str,
pub style: &'a str,
pub format: &'a str,
pub disabled: bool,
}
impl<'a> Default for VcshConfig<'a> {
fn default() -> Self {
VcshConfig {
symbol: "",
style: "bold yellow",
format: "vcsh [$symbol$repo]($style) ",
disabled: false,
}
}
}