JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

So. Much. Work.

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨b05f964

⁨giterated-plugins/giterated-issues/src/setting.rs⁩ - ⁨557⁩ bytes
Raw
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