mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-05-31 15:40:51 +00:00
23 lines
542 B
Rust
23 lines
542 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Deserialize, Serialize)]
|
|
#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))]
|
|
#[serde(default)]
|
|
pub struct LocalipConfig<'a> {
|
|
pub ssh_only: bool,
|
|
pub format: &'a str,
|
|
pub style: &'a str,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl<'a> Default for LocalipConfig<'a> {
|
|
fn default() -> Self {
|
|
LocalipConfig {
|
|
ssh_only: true,
|
|
format: "[$localipv4]($style) ",
|
|
style: "yellow bold",
|
|
disabled: true,
|
|
}
|
|
}
|
|
}
|