1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct AzureConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
pub subscription_aliases: HashMap<String, &'a str>,
}
impl<'a> Default for AzureConfig<'a> {
fn default() -> Self {
AzureConfig {
format: "on [$symbol($subscription)]($style) ",
symbol: " ",
style: "blue bold",
disabled: true,
subscription_aliases: HashMap::new(),
}
}
}
|