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

ambee/giterated

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

Fixed imports!

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨ef0e853

⁨giterated-models/src/user/settings.rs⁩ - ⁨596⁩ bytes
Raw
1 use serde::{Deserialize, Serialize};
2
3 use crate::settings::Setting;
4
5 #[derive(Debug, Serialize, Deserialize)]
6 pub struct UserBio(pub String);
7
8 impl Setting for UserBio {
9 fn name() -> &'static str {
10 "Bio"
11 }
12 }
13
14 #[derive(Debug, Serialize, Deserialize, Clone)]
15 pub struct UserDisplayName(pub String);
16
17 impl Setting for UserDisplayName {
18 fn name() -> &'static str {
19 "Display Name"
20 }
21 }
22
23 #[derive(Debug, Serialize, Deserialize)]
24 pub struct UserDisplayImage(pub String);
25
26 impl Setting for UserDisplayImage {
27 fn name() -> &'static str {
28 "Profile Image"
29 }
30 }
31