1 |
use giterated_models::settings::Setting;
|
2 |
use serde::{Deserialize, Serialize};
|
3 |
|
4 |
use crate::value::Name;
|
5 |
|
6 |
impl Setting for Name {
|
7 |
fn name() -> &'static str {
|
8 |
"name"
|
9 |
}
|
10 |
}
|
11 |
|
12 |
#[derive(Clone, Debug, Serialize, Deserialize)]
|
13 |
pub struct Contents(String);
|
14 |
|
15 |
impl Setting for Contents {
|
16 |
fn name() -> &'static str {
|
17 |
"contents"
|
18 |
}
|
19 |
}
|
20 |
|
21 |
#[derive(Clone, Debug, Serialize, Deserialize)]
|
22 |
pub struct NotificationsOverride(pub bool);
|
23 |
|
24 |
impl Setting for NotificationsOverride {
|
25 |
fn name() -> &'static str {
|
26 |
"notifications_override"
|
27 |
}
|
28 |
}
|
29 |
|